EleFits  5.3.0
A modern C++ API on top of CFITSIO
Loading...
Searching...
No Matches
Public Member Functions | List of all members
PositionIterator< N > Class Template Reference

#include <PositionIterator.h>

Detailed Description

template<long N = 2>
class Euclid::Fits::PositionIterator< N >

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 > &region, 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.
 

The documentation for this class was generated from the following file: