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

Constructor & Destructor Documentation

◆ FirstShim()

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

Member Data Documentation

◆ name

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

Definition at line 253 of file serialization_shim.hpp.

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

◆ t

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

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