#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 Position< N > & | operator* () const |
Dereference operator. | |
const Position< N > * | operator-> () const |
Arrow operator. | |
const Position< N > & | operator++ () |
Increment operator. | |
const Position< N > * | operator++ (int) |
Increment operator. | |
bool | operator== (const PositionIterator &rhs) const |
Equality operator. | |
bool | operator!= (const PositionIterator &rhs) const |
Non-equality operator. | |
const std::vector< Position< N > > & | followers () const |
Get the followers positions. | |
void | reset () |
Reset the current and followers positions to the initial positions. | |