26#ifndef LATTICES_LATTICEITERATOR_H
27#define LATTICES_LATTICEITERATOR_H
30#include <casacore/casa/aips.h>
31#include <casacore/lattices/Lattices/Lattice.h>
32#include <casacore/lattices/Lattices/LatticeIterInterface.h>
33#include <casacore/casa/Arrays/ArrayFwd.h>
40class LatticeNavigator;
519#ifndef CASACORE_NO_AUTO_TEMPLATES
520#include <casacore/lattices/Lattices/Lattice.tcc>
521#include <casacore/lattices/Lattices/LatticeIterator.tcc>
A read/write lattice iterator.
Matrix< T > & woMatrixCursor()
Vector< T > & woVectorCursor()
LatticeIterator(Lattice< T > &data, const LatticeNavigator &method, Bool useRef=True)
Construct the Iterator with the supplied data, and iteration strategy.
LatticeIterator< T > & operator=(const LatticeIterator< T > &other)
Assignment uses reference semantics (ie.
LatticeIterator(Lattice< T > &data, Bool useRef=True)
Construct the Iterator with the supplied data.
Cube< T > & woCubeCursor()
LatticeIterator(const LatticeIterator< T > &other)
The copy constructor uses reference semantics (ie.
Cube< T > & rwCubeCursor()
Vector< T > & rwVectorCursor()
Functions to return a window to the data in the Lattice.
Bool ok() const
Function which checks the internals of the class for consistency.
~LatticeIterator()
destructor (cleans up dangling references and releases memory)
Matrix< T > & rwMatrixCursor()
LatticeIterator()
The default constructor creates an empty object which is practically unusable.
LatticeIterator(Lattice< T > &data, const IPosition &cursorShape, Bool useRef=True)
Iterate through the data with a LatticeStepper that has uses the supplied cursorShape.
LatticeIterator< T > copy() const
Make a copy of the iterator object.
Bool atEnd() const
Function which returns a value of "True" if an attempt has been made to move the cursor beyond the en...
const Matrix< T > & matrixCursor() const
void reset()
Function which resets the cursor to the beginning of the Lattice and resets the number of steps taken...
RO_LatticeIterator(const Lattice< T > &data, Bool useRef=True)
Construct the Iterator with the supplied data.
Bool isNull() const
Is the iterator object empty?
const Cube< T > & cubeCursor() const
Bool atStart() const
Function which returns a value of "True" if the cursor is at the beginning of the Lattice,...
Lattice< T > & lattice() const
Return the underlying lattice.
IPosition endPosition() const
Function which returns the current position of the end of the cursor.
std::shared_ptr< LatticeIterInterface< T > > itsIterPtr
The pointer to the Iterator.
IPosition position() const
Function which returns the current position of the beginning of the cursor within the Lattice.
Bool operator++()
Increment operator - increment the cursor to the next position.
RO_LatticeIterator(const Lattice< T > &data, const IPosition &cursorShape, Bool useRef=True)
Construct the Iterator with the supplied data.
RO_LatticeIterator()
The default constructor creates an empty object which is practically unusable.
const Vector< T > & vectorCursor() const
Functions which returns a window to the data in the Lattice.
RO_LatticeIterator(const RO_LatticeIterator< T > &other)
The copy constructor uses reference semantics (ie.
~RO_LatticeIterator()
Destructor (cleans up dangling references and releases memory)
RO_LatticeIterator< T > copy() const
Make a copy of the iterator object.
RO_LatticeIterator(const Lattice< T > &data, const LatticeNavigator &method, Bool useRef=True)
Construct the Iterator with the supplied data, and iteration strategy.
IPosition cursorShape() const
Function which returns the shape of the cursor which is iterating through the Lattice.
RO_LatticeIterator< T > & operator=(const RO_LatticeIterator< T > &other)
Assignment uses reference semantics (ie.
IPosition latticeShape() const
Function which returns the shape of the Lattice being iterated through.
uInt nsteps() const
Function to return the number of steps (increments or decrements) taken since construction (or since ...
Bool ok() const
Function which checks the internals of the class for consistency.
Bool operator--()
Decrement operator - decrement the cursor to the previous position.
const Array< T > & cursor() const
this file contains all the compiler specific defines
bool Bool
Define the standard types used by Casacore.