EleFits
4.0.1
A modern C++ API on top of CFitsIO
|
#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. | |