mlpack: a scalable c++ machine learning library
mlpack  2.0.2
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 66 of file serialization_shim.hpp.

Constructor & Destructor Documentation

◆ SecondShim()

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 299 of file serialization_shim.hpp.

Member Function Documentation

◆ serialize()

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 303 of file serialization_shim.hpp.

Member Data Documentation

◆ t

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

Definition at line 308 of file serialization_shim.hpp.


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