[ VIGRA Homepage | Function Index | Class Index | Namespaces | File List | Main Page ]
LastValueFunctor< VALUETYPE > Class Template Reference |
Stores and returns the last value it has seen. More...
#include <vigra/inspectimage.hxx>
Public Types | |
typedef VALUETYPE | argument_type |
typedef VALUETYPE | result_type |
typedef VALUETYPE | value_type |
Public Member Functions | |
LastValueFunctor (argument_type const &initial=argument_type()) | |
void | operator() (argument_type const &v) |
result_type const & | operator() () const |
void | operator= (argument_type const &v) |
void | reset () |
Public Attributes | |
VALUETYPE | value |
Stores and returns the last value it has seen.
This Functor is best used in conjunction with ArrayOfRegionStatistics to realize a look-up table.
Traits defined:
FunctorTraits::isUnaryAnalyser
and FunctorTraits::isInitializer
are true (VigraTrueType
)
Usage:
#include <vigra/inspectimage.hxx>
Namespace: vigra
typedef VALUETYPE argument_type |
the functor's argument type
typedef VALUETYPE result_type |
the functor's result type
typedef VALUETYPE value_type |
LastValueFunctor | ( | argument_type const & | initial = argument_type() | ) |
default construction of value (i.e. builtin types will be set to zero)
void operator= | ( | argument_type const & | v | ) |
replace value
void reset | ( | ) |
reset to initial value (the same as after default construction)
void operator() | ( | argument_type const & | v | ) |
replace value
result_type const& operator() | ( | ) | const |
return current value
VALUETYPE value |
the current value
© Ullrich Köthe (ullrich.koethe@iwr.uni-heidelberg.de) |
html generated using doxygen and Python
|