[ VIGRA Homepage | Function Index | Class Index | Namespaces | File List | Main Page ]
LineIterator< IMAGE_ITERATOR > Class Template Reference |
Iterator adapter to iterate along an arbitrary line on the image. More...
#include <vigra/imageiteratoradapter.hxx>
Inherits IMAGE_ITERATOR.
Public Types | |
typedef IMAGE_ITERATOR | Adaptee |
typedef std::forward_iterator_tag | iterator_category |
typedef IMAGE_ITERATOR::value_type | PixelType |
typedef IMAGE_ITERATOR::pointer | pointer |
typedef IMAGE_ITERATOR::reference | reference |
typedef IMAGE_ITERATOR::value_type | value_type |
Public Member Functions | |
LineIterator (IMAGE_ITERATOR const &start, IMAGE_ITERATOR const &end) | |
Navigation | |
LineIterator & | operator++ () |
LineIterator | operator++ (int) |
Methods | |
bool | operator== (LineIterator const &c) const |
bool | operator!= (LineIterator const &c) const |
reference | operator* () const |
pointer | operator-> () const |
Adaptee & | adaptee () const |
Iterator adapter to iterate along an arbitrary line on the image.
This iterator may be initialized from a standard ImageIterator, a MultibandImageIterator and so on. It gives you STL-compatible (forward iterator) access to an arbitrary line on the image. The iterator gets associated with the accessor of the base iterator.
#include <vigra/imageiteratoradapter.hxx>
Namespace: vigra
typedef IMAGE_ITERATOR::value_type value_type |
the iterator's value type
typedef IMAGE_ITERATOR::value_type PixelType |
the iterator's value type
typedef IMAGE_ITERATOR::reference reference |
the iterator's reference type (return type of *iter
)
typedef IMAGE_ITERATOR::pointer pointer |
the iterator's pointer type (return type of iter.operator->()
)
typedef std::forward_iterator_tag iterator_category |
the iterator tag (forward iterator)
typedef IMAGE_ITERATOR Adaptee |
the type of the adapted iterator
LineIterator | ( | IMAGE_ITERATOR const & | start, |
IMAGE_ITERATOR const & | end | ||
) |
Construct from an the image iterator to be adapted.
bool operator== | ( | LineIterator< IMAGE_ITERATOR > const & | c | ) | const |
Equality.
bool operator!= | ( | LineIterator< IMAGE_ITERATOR > const & | c | ) | const |
Inequality.
reference operator* | ( | ) | const |
Access current pixel.
pointer operator-> | ( | ) | const |
Call member function for current pixel.
Adaptee& adaptee | ( | ) | const |
Get a reference to the adapted iterator
© Ullrich Köthe (ullrich.koethe@iwr.uni-heidelberg.de) |
html generated using doxygen and Python
|