mlpack  master
Public Member Functions | Private Attributes | List of all members
mlpack::range::SerializeVisitor< Archive > Class Template Reference

Exposes the seralize method of the given RSType. More...

Inheritance diagram for mlpack::range::SerializeVisitor< Archive >:
Inheritance graph
[legend]

Public Member Functions

 SerializeVisitor (Archive &ar, const std::string &name)
 Construct the SerializeVisitor with the given archive and name. More...
 
template<typename RSType >
void operator() (RSType *rs) const
 Serialize the given model. More...
 

Private Attributes

Archive & ar
 Archive to serialize to. More...
 
const std::stringname
 Name of the model to serialize. More...
 

Detailed Description

template<typename Archive>
class mlpack::range::SerializeVisitor< Archive >

Exposes the seralize method of the given RSType.

Definition at line 194 of file rs_model.hpp.

Constructor & Destructor Documentation

template<typename Archive >
mlpack::range::SerializeVisitor< Archive >::SerializeVisitor ( Archive &  ar,
const std::string name 
)

Construct the SerializeVisitor with the given archive and name.

Member Function Documentation

template<typename Archive >
template<typename RSType >
void mlpack::range::SerializeVisitor< Archive >::operator() ( RSType rs) const

Serialize the given model.

Member Data Documentation

template<typename Archive >
Archive& mlpack::range::SerializeVisitor< Archive >::ar
private

Archive to serialize to.

Definition at line 198 of file rs_model.hpp.

template<typename Archive >
const std::string& mlpack::range::SerializeVisitor< Archive >::name
private

Name of the model to serialize.

Definition at line 200 of file rs_model.hpp.


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