DGtal
0.6.devel
|
#include <BasicFunctors.h>
Public Types | |
typedef TValue | Value |
Public Member Functions | |
ConstValueFunctor (const Value &aValue=0) | |
template<typename TInput > | |
Value | operator() (const TInput &) const |
Private Attributes | |
Value | myValue |
Aim: Define a simple functor that returns a constant value (0 by default).
Description of template class 'ConstValueFunctor'
TValue | type of the value |
Definition at line 135 of file BasicFunctors.h.
typedef TValue DGtal::ConstValueFunctor< TValue >::Value |
Definition at line 138 of file BasicFunctors.h.
|
inline |
Constructor.
value | the constant value. |
Definition at line 144 of file BasicFunctors.h.
|
inline |
Operator
TInput | type of the input object |
aInput | input object |
Definition at line 157 of file BasicFunctors.h.
References DGtal::ConstValueFunctor< TValue >::myValue.
|
private |
value
Definition at line 166 of file BasicFunctors.h.
Referenced by DGtal::ConstValueFunctor< TValue >::operator()().