[ VIGRA Homepage | Function Index | Class Index | Namespaces | File List | Main Page ]
Accessor for items that are STL compatible vectors. More...
#include <vigra/accessor.hxx>
Public Types | |
typedef VECTOR::value_type | component_type |
typedef VectorElementAccessor< VectorAccessor< VECTOR > > | ElementAccessor |
![]() | |
typedef SEQUENCE::value_type | component_type |
![]() | |
typedef VALUETYPE | value_type |
Accessor for items that are STL compatible vectors.
It encapsulates access to a vector's access functionality.
Usage:
#include <vigra/accessor.hxx>
Namespace: vigra
The accessor has two modes of operation:
Access the vector's iterator via the begin()
and end()
functions:
operator[]
): Required Interface:
typedef VECTOR::value_type component_type |
the vector's value_type
the vector element accessor associated with this vector accessor (see VectorElementAccessor)
component_type const & getComponent | ( | ITERATOR const & | i, |
int | idx | ||
) | const |
Read the component data at given vector index at given iterator position
Set the component data at given vector index at given iterator position. The type V
of the passed in value
is automatically converted to component_type
. In case of a conversion floating point -> integral this includes rounding and clipping.
Read the component data at given vector index at an offset of given iterator position
Set the component data at given vector index at an offset of given iterator position. The type V
of the passed in value
is automatically converted to component_type
. In case of a conversion floating point -> integral this includes rounding and clipping.
© Ullrich Köthe (ullrich.koethe@iwr.uni-heidelberg.de) |