[ VIGRA Homepage | Function Index | Class Index | Namespaces | File List | Main Page ]
Encapsulate read access to the values an iterator points to. More...
#include <vigra/accessor.hxx>
Public Member Functions | |
template<class ITERATOR> | |
VALUETYPE const & | operator() (ITERATOR const &i) const |
template<class ITERATOR, class OFFSET> | |
VALUETYPE const & | operator() (ITERATOR const &i, OFFSET const &diff) const |
Encapsulate read access to the values an iterator points to.
StandardConstAccessor is a trivial accessor that simply encapsulates the iterator's operator*() and operator[]() in its read functions. It passes its arguments by reference. If the iterator returns its items by value (such as CoordinateIterator), you must use StandardConstValueAccessor instead of StandardConstAccessor. Both accessors also have different optimization properties – StandardConstAccessor is usually faster for compound pixel types, while StandardConstValueAccessor is faster for the built-in types.
#include <vigra/accessor.hxx>
Namespace: vigra
VALUETYPE const & operator() | ( | ITERATOR const & | i | ) | const |
read the current data item
VALUETYPE const & operator() | ( | ITERATOR const & | i, |
OFFSET const & | diff ) const |
read the data item at an offset (can be 1D or 2D or higher order difference).
© Ullrich Köthe (ullrich.koethe@iwr.uni-heidelberg.de) |
html generated using doxygen and Python
|