EleFits  4.0.0
A modern C++ API on top of CFitsIO
Public Member Functions | List of all members
Euclid::Fits::PositionIterator< n > Class Template Reference

#include <PositionIterator.h>

Class 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.

Inheritance diagram for Euclid::Fits::PositionIterator< n >:
[legend]

Public Member Functions

 PositionIterator (const Region< n > &region, 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.
 

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