DGtal 1.4.0
|
Aim: Define a simple functor that returns a constant value (0 by default). More...
#include <DGtal/base/BasicFunctors.h>
Public Types | |
typedef TValue | Value |
Public Member Functions | |
ConstValue (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 'ConstValue'
TValue | type of the value |
Definition at line 310 of file BasicFunctors.h.
typedef TValue DGtal::functors::ConstValue< TValue >::Value |
Definition at line 313 of file BasicFunctors.h.
|
inline |
Constructor.
aValue | the constant value. |
Definition at line 319 of file BasicFunctors.h.
|
inline |
Operator
TInput | type of the input object |
Definition at line 331 of file BasicFunctors.h.
References DGtal::functors::ConstValue< TValue >::myValue.
|
private |
value
Definition at line 340 of file BasicFunctors.h.
Referenced by DGtal::functors::ConstValue< TValue >::operator()().