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

SetInputHeightVisitor updates the input height parameter with the given input height. More...

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

Public Member Functions

 SetInputHeightVisitor (const size_t inputHeight=0, const bool reset=false)
 Update the input height parameter with the given input height. More...
 
template<typename LayerType >
bool operator() (LayerType *layer) const
 Update the input height parameter. More...
 

Private Member Functions

template<typename T >
std::enable_if< !HasInputHeight< T, size_t &(T::*)()>::value &&!HasModelCheck< T, std::vector< LayerTypes > &(T::*)()>::value, bool >::type LayerInputHeight (T *layer) const
 Do nothing if the module doesn't implement the InputHeight() or Model() function. More...
 
template<typename T >
std::enable_if< HasInputHeight< T, size_t &(T::*)()>::value &&!HasModelCheck< T, std::vector< LayerTypes > &(T::*)()>::value, bool >::type LayerInputHeight (T *layer) const
 Update the input height if the module implements the InputHeight() function. More...
 
template<typename T >
std::enable_if< !HasInputHeight< T, size_t &(T::*)()>::value &&HasModelCheck< T, std::vector< LayerTypes > &(T::*)()>::value, bool >::type LayerInputHeight (T *layer) const
 Update the input height if the module implements the Model() function. More...
 
template<typename T >
std::enable_if< HasInputHeight< T, size_t &(T::*)()>::value &&HasModelCheck< T, std::vector< LayerTypes > &(T::*)()>::value, bool >::type LayerInputHeight (T *layer) const
 Update the input height if the module implements the InputHeight() or Model() function. More...
 

Private Attributes

size_t inputHeight
 The input height parameter. More...
 
bool reset
 If set reset the height parameter if already set. More...
 

Detailed Description

SetInputHeightVisitor updates the input height parameter with the given input height.

Definition at line 28 of file set_input_height_visitor.hpp.

Constructor & Destructor Documentation

mlpack::ann::SetInputHeightVisitor::SetInputHeightVisitor ( const size_t  inputHeight = 0,
const bool  reset = false 
)

Update the input height parameter with the given input height.

Member Function Documentation

template<typename T >
std::enable_if< !HasInputHeight<T, size_t&(T::*)()>::value && !HasModelCheck<T, std::vector<LayerTypes>&(T::*)()>::value, bool>::type mlpack::ann::SetInputHeightVisitor::LayerInputHeight ( T *  layer) const
private

Do nothing if the module doesn't implement the InputHeight() or Model() function.

template<typename T >
std::enable_if< HasInputHeight<T, size_t&(T::*)()>::value && !HasModelCheck<T, std::vector<LayerTypes>&(T::*)()>::value, bool>::type mlpack::ann::SetInputHeightVisitor::LayerInputHeight ( T *  layer) const
private

Update the input height if the module implements the InputHeight() function.

template<typename T >
std::enable_if< !HasInputHeight<T, size_t&(T::*)()>::value && HasModelCheck<T, std::vector<LayerTypes>&(T::*)()>::value, bool>::type mlpack::ann::SetInputHeightVisitor::LayerInputHeight ( T *  layer) const
private

Update the input height if the module implements the Model() function.

template<typename T >
std::enable_if< HasInputHeight<T, size_t&(T::*)()>::value && HasModelCheck<T, std::vector<LayerTypes>&(T::*)()>::value, bool>::type mlpack::ann::SetInputHeightVisitor::LayerInputHeight ( T *  layer) const
private

Update the input height if the module implements the InputHeight() or Model() function.

template<typename LayerType >
bool mlpack::ann::SetInputHeightVisitor::operator() ( LayerType *  layer) const

Update the input height parameter.

Member Data Documentation

size_t mlpack::ann::SetInputHeightVisitor::inputHeight
private

The input height parameter.

Definition at line 40 of file set_input_height_visitor.hpp.

bool mlpack::ann::SetInputHeightVisitor::reset
private

If set reset the height parameter if already set.

Definition at line 43 of file set_input_height_visitor.hpp.


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