mlpack  master
Public Member Functions | Private Member Functions | Private Attributes | List of all members
mlpack::ann::SaveOutputParameterVisitor Class Reference

SaveOutputParameterVisitor saves the output parameter into the given parameter set. More...

Inheritance diagram for mlpack::ann::SaveOutputParameterVisitor:
Inheritance graph
[legend]

Public Member Functions

 SaveOutputParameterVisitor (std::vector< arma::mat > &&parameter)
 Save the output parameter into the given parameter set. More...
 
template<typename LayerType >
void operator() (LayerType *layer) const
 Save the output parameter. More...
 

Private Member Functions

template<typename T >
std::enable_if< !HasModelCheck< T, std::vector< LayerTypes > &(T::*)()>::value, void >::type OutputParameter (T *layer) const
 Save the output parameter for a module which doesn't implement the Model() function. More...
 
template<typename T >
std::enable_if< HasModelCheck< T, std::vector< LayerTypes > &(T::*)()>::value, void >::type OutputParameter (T *layer) const
 Save the output parameter for a module which implements the Model() function. More...
 

Private Attributes

std::vector< arma::mat > && parameter
 The parameter set. More...
 

Detailed Description

SaveOutputParameterVisitor saves the output parameter into the given parameter set.

Definition at line 28 of file save_output_parameter_visitor.hpp.

Constructor & Destructor Documentation

mlpack::ann::SaveOutputParameterVisitor::SaveOutputParameterVisitor ( std::vector< arma::mat > &&  parameter)

Save the output parameter into the given parameter set.

Member Function Documentation

template<typename LayerType >
void mlpack::ann::SaveOutputParameterVisitor::operator() ( LayerType *  layer) const

Save the output parameter.

template<typename T >
std::enable_if< !HasModelCheck<T, std::vector<LayerTypes>&(T::*)()>::value, void>::type mlpack::ann::SaveOutputParameterVisitor::OutputParameter ( T *  layer) const
private

Save the output parameter for a module which doesn't implement the Model() function.

template<typename T >
std::enable_if< HasModelCheck<T, std::vector<LayerTypes>&(T::*)()>::value, void>::type mlpack::ann::SaveOutputParameterVisitor::OutputParameter ( T *  layer) const
private

Save the output parameter for a module which implements the Model() function.

Member Data Documentation

std::vector<arma::mat>&& mlpack::ann::SaveOutputParameterVisitor::parameter
private

The parameter set.

Definition at line 40 of file save_output_parameter_visitor.hpp.


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