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

The second shim: wrap the call to Serialize() inside of a serialize() function, so that an archive type can call serialize() on a SecondShim object and this gets forwarded correctly to our object's Serialize() function. More...

Public Member Functions

 SecondShim (T &t)
 Construct the second shim. The name isn't necessary for this shim. More...
 
template<typename Archive >
void serialize (Archive &ar, const unsigned int version)
 A wrapper for t.Serialize(). More...
 

Public Attributes

T & t
 

Detailed Description

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

The second shim: wrap the call to Serialize() inside of a serialize() function, so that an archive type can call serialize() on a SecondShim object and this gets forwarded correctly to our object's Serialize() function.

Definition at line 65 of file serialization_shim.hpp.

Constructor & Destructor Documentation

template<typename T>
mlpack::data::SecondShim< T >::SecondShim ( T &  t)
inline

Construct the second shim. The name isn't necessary for this shim.

Definition at line 298 of file serialization_shim.hpp.

Member Function Documentation

template<typename T>
template<typename Archive >
void mlpack::data::SecondShim< T >::serialize ( Archive &  ar,
const unsigned int  version 
)
inline

A wrapper for t.Serialize().

Definition at line 302 of file serialization_shim.hpp.

Member Data Documentation

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

Definition at line 307 of file serialization_shim.hpp.


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