mlpack: mlpack::data::SecondArrayShim< T > Struct Template Reference
mlpack::data::SecondArrayShim< T > Struct Template Reference

A shim for objects in an array; this is basically like the SecondShim, but for arrays that hold objects that have Serialize() methods instead of serialize() methods. More...

Public Member Functions

 SecondArrayShim (T *t, const size_t len)
 Construct the shim. More...
 
template<typename Archive >
void serialize (Archive &ar, const unsigned int)
 A wrapper for Serialize() for each element. More...
 

Public Attributes

const size_t len
 
T * t
 

Detailed Description

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

A shim for objects in an array; this is basically like the SecondShim, but for arrays that hold objects that have Serialize() methods instead of serialize() methods.

Definition at line 67 of file serialization_shim.hpp.

Constructor & Destructor Documentation

template<typename T>
mlpack::data::SecondArrayShim< T >::SecondArrayShim ( T *  t,
const size_t  len 
)
inline

Construct the shim.

Definition at line 320 of file serialization_shim.hpp.

Member Function Documentation

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

A wrapper for Serialize() for each element.

Definition at line 324 of file serialization_shim.hpp.

References mlpack::data::CreateNVP().

Member Data Documentation

template<typename T>
const size_t mlpack::data::SecondArrayShim< T >::len

Definition at line 332 of file serialization_shim.hpp.

template<typename T>
T* mlpack::data::SecondArrayShim< T >::t

Definition at line 331 of file serialization_shim.hpp.


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