mlpack  master
Public Member Functions | Public Attributes | List of all members
mlpack::data::FirstShim< T > Struct Template Reference

The first shim: simply holds the object and its name. More...

Public Member Functions

 FirstShim (T &t, const std::string &name)
 Construct the first shim with the given object and name. More...
 

Public Attributes

const std::stringname
 
T & t
 

Detailed Description

template<typename T>
struct mlpack::data::FirstShim< T >

The first shim: simply holds the object and its name.

This shim's purpose is to be caught by our overloads of operator<<, operator&, and operator>>, which then creates a second shim.

Definition at line 62 of file serialization_shim.hpp.

Constructor & Destructor Documentation

template<typename T>
mlpack::data::FirstShim< T >::FirstShim ( T &  t,
const std::string name 
)
inline

Construct the first shim with the given object and name.

Definition at line 249 of file serialization_shim.hpp.

Member Data Documentation

template<typename T>
const std::string& mlpack::data::FirstShim< T >::name

Definition at line 252 of file serialization_shim.hpp.

Referenced by mlpack::data::operator&(), and mlpack::data::operator>>().

template<typename T>
T& mlpack::data::FirstShim< T >::t

Definition at line 251 of file serialization_shim.hpp.

Referenced by mlpack::data::operator&(), and mlpack::data::operator>>().


The documentation for this struct was generated from the following file: