[ 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 | |
| void | operator() (argument_type const &v) |
| result_type const & | operator() () const |
| void | reset () |
Public Attributes | |
| __pad0__: value(initial) {} void operator=(argument_type const & v) { value = v | |
| 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 |
| 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
| __pad0__ |
default construction of value (i.e. builtin types will be set to zero)
| VALUETYPE value |
the current value
|
© Ullrich Köthe (ullrich.koethe@iwr.uni-heidelberg.de) |
html generated using doxygen and Python
|