DGtal 1.4.0
|
Aim: Define a simple functor that returns a constant quantity (0 by default). More...
#include <DGtal/base/BasicFunctors.h>
Public Types | |
typedef TCell | Cell |
typedef TQuantity | Quantity |
Public Member Functions | |
ConstValueCell (const Quantity &aQuantity=0) | |
Quantity | operator() (const Cell &) const |
Private Attributes | |
Quantity | myQuantity |
Aim: Define a simple functor that returns a constant quantity (0 by default).
Description of template class 'ConstValueCell'
TQuantity | type of the quantity |
TCell | type of the cell |
Definition at line 353 of file BasicFunctors.h.
typedef TCell DGtal::functors::ConstValueCell< TQuantity, TCell >::Cell |
Definition at line 356 of file BasicFunctors.h.
typedef TQuantity DGtal::functors::ConstValueCell< TQuantity, TCell >::Quantity |
Definition at line 357 of file BasicFunctors.h.
|
inline |
Constructor.
aQuantity | the constant quantity. |
Definition at line 363 of file BasicFunctors.h.
|
inline |
Operator
Definition at line 372 of file BasicFunctors.h.
References DGtal::functors::ConstValueCell< TQuantity, TCell >::myQuantity.
|
private |
value
Definition at line 381 of file BasicFunctors.h.
Referenced by DGtal::functors::ConstValueCell< TQuantity, TCell >::operator()().