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

OutputWidthVisitor exposes the OutputWidth() method of the given module. More...

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

Public Member Functions

template<typename LayerType >
size_t operator() (LayerType *layer) const
 Return the output width. More...
 

Private Member Functions

template<typename T >
std::enable_if< !HasInputWidth< T, size_t &(T::*)()>::value &&!HasModelCheck< T, std::vector< LayerTypes > &(T::*)()>::value, size_t >::type LayerOutputWidth (T *layer) const
 Return 0 if the module doesn't implement the InputWidth() or Model() function. More...
 
template<typename T >
std::enable_if< HasInputWidth< T, size_t &(T::*)()>::value &&!HasModelCheck< T, std::vector< LayerTypes > &(T::*)()>::value, size_t >::type LayerOutputWidth (T *layer) const
 Return the output width if the module implements the InputWidth() function. More...
 
template<typename T >
std::enable_if< !HasInputWidth< T, size_t &(T::*)()>::value &&HasModelCheck< T, std::vector< LayerTypes > &(T::*)()>::value, size_t >::type LayerOutputWidth (T *layer) const
 Return the output width if the module implements the Model() function. More...
 
template<typename T >
std::enable_if< HasInputWidth< T, size_t &(T::*)()>::value &&HasModelCheck< T, std::vector< LayerTypes > &(T::*)()>::value, size_t >::type LayerOutputWidth (T *layer) const
 Return the output width if the module implements the Model() or InputWidth() function. More...
 

Detailed Description

OutputWidthVisitor exposes the OutputWidth() method of the given module.

Definition at line 28 of file output_width_visitor.hpp.

Member Function Documentation

template<typename T >
std::enable_if< !HasInputWidth<T, size_t&(T::*)()>::value && !HasModelCheck<T, std::vector<LayerTypes>&(T::*)()>::value, size_t>::type mlpack::ann::OutputWidthVisitor::LayerOutputWidth ( T *  layer) const
private

Return 0 if the module doesn't implement the InputWidth() or Model() function.

template<typename T >
std::enable_if< HasInputWidth<T, size_t&(T::*)()>::value && !HasModelCheck<T, std::vector<LayerTypes>&(T::*)()>::value, size_t>::type mlpack::ann::OutputWidthVisitor::LayerOutputWidth ( T *  layer) const
private

Return the output width if the module implements the InputWidth() function.

template<typename T >
std::enable_if< !HasInputWidth<T, size_t&(T::*)()>::value && HasModelCheck<T, std::vector<LayerTypes>&(T::*)()>::value, size_t>::type mlpack::ann::OutputWidthVisitor::LayerOutputWidth ( T *  layer) const
private

Return the output width if the module implements the Model() function.

template<typename T >
std::enable_if< HasInputWidth<T, size_t&(T::*)()>::value && HasModelCheck<T, std::vector<LayerTypes>&(T::*)()>::value, size_t>::type mlpack::ann::OutputWidthVisitor::LayerOutputWidth ( T *  layer) const
private

Return the output width if the module implements the Model() or InputWidth() function.

template<typename LayerType >
size_t mlpack::ann::OutputWidthVisitor::operator() ( LayerType *  layer) const

Return the output width.


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