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

AddVisitor exposes the Add() method of the given module. More...

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

Public Member Functions

template<typename T >
 AddVisitor (T newLayer)
 Exposes the Add() method of the given module. More...
 
template<typename LayerType >
void operator() (LayerType *layer) const
 Exposes the Add() method. More...
 

Private Member Functions

template<typename T >
std::enable_if< HasAddCheck< T, void(T::*)(LayerTypes)>::value, void >::type LayerAdd (T *layer) const
 Only add the layer if the module implements the Add() function. More...
 
template<typename T >
std::enable_if< !HasAddCheck< T, void(T::*)(LayerTypes)>::value, void >::type LayerAdd (T *layer) const
 Do not add the layer if the module doesn't implement the Add() function. More...
 

Private Attributes

LayerTypes newLayer
 The layer that should be added. More...
 

Detailed Description

AddVisitor exposes the Add() method of the given module.

Definition at line 27 of file add_visitor.hpp.

Constructor & Destructor Documentation

template<typename T >
mlpack::ann::AddVisitor::AddVisitor ( newLayer)

Exposes the Add() method of the given module.

Member Function Documentation

template<typename T >
std::enable_if< HasAddCheck<T, void(T::*)(LayerTypes)>::value, void>::type mlpack::ann::AddVisitor::LayerAdd ( T *  layer) const
private

Only add the layer if the module implements the Add() function.

template<typename T >
std::enable_if< !HasAddCheck<T, void(T::*)(LayerTypes)>::value, void>::type mlpack::ann::AddVisitor::LayerAdd ( T *  layer) const
private

Do not add the layer if the module doesn't implement the Add() function.

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

Exposes the Add() method.

Member Data Documentation

LayerTypes mlpack::ann::AddVisitor::newLayer
private

The layer that should be added.

Definition at line 40 of file add_visitor.hpp.


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