mlpack  2.2.5
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Public Member Functions | Public Attributes | List of all members
FirstNormalArrayShim< T > Struct Template Reference

A first shim for arrays without a Serialize() method. More...

Public Member Functions

 FirstNormalArrayShim (T *t, const size_t len, const std::string &name)
 Construct the first shim with the given objects, length, and name. More...
 

Public Attributes

const size_t len
 
const std::string & name
 
T * t
 

Detailed Description

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

A first shim for arrays without a Serialize() method.

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

Constructor & Destructor Documentation

FirstNormalArrayShim ( T *  t,
const size_t  len,
const std::string &  name 
)
inline

Construct the first shim with the given objects, length, and name.

Definition at line 280 of file serialization_shim.hpp.

Member Data Documentation

const size_t len

Definition at line 284 of file serialization_shim.hpp.

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

const std::string& name

Definition at line 285 of file serialization_shim.hpp.

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

T* t

Definition at line 283 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: