#include <PositionIterator.h>
A helper class to screen a Region
.
Some current position is updated with increment operators. The move is such that the corresponding offset in a Raster
is always increasing. In particular, when screening a whole Raster
, the pixels are visited in the storage order.
Public Member Functions | |
PositionIterator (const Region< N > ®ion, const std::vector< Position< N > > &followers={}) | |
Constructor. More... | |
const std::vector< Position< N > > & | followers () const |
Get the followers positions. | |
bool | operator!= (const PositionIterator &rhs) const |
Non-equality operator. | |
const Position< N > & | operator* () const |
Dereference operator. | |
const Position< N > & | operator++ () |
Increment operator. | |
const Position< N > * | operator++ (int) |
Increment operator. | |
const Position< N > * | operator-> () const |
Arrow operator. | |
bool | operator== (const PositionIterator &rhs) const |
Equality operator. | |
void | reset () |
Reset the current and followers positions to the initial positions. | |