28 #ifndef LATTICES_LATTICEITERATOR_H
29 #define LATTICES_LATTICEITERATOR_H
41 class LatticeNavigator;
42 template <
class T>
class Array;
43 template <
class T>
class Cube;
44 template <
class T>
class Matrix;
45 template <
class T>
class Vector;
208 template <
class T>
class RO_LatticeIterator
247 RO_LatticeIterator<T>&
operator= (
const RO_LatticeIterator<T>& other);
256 RO_LatticeIterator<T>
copy()
const;
525 #ifndef CASACORE_NO_AUTO_TEMPLATES
526 #include <casacore/lattices/Lattices/Lattice.tcc>
527 #include <casacore/lattices/Lattices/LatticeIterator.tcc>
528 #endif //# CASACORE_NO_AUTO_TEMPLATES
A Vector of integers, for indexing into Array<T> objects.
~RO_LatticeIterator()
Destructor (cleans up dangling references and releases memory)
const Matrix< T > & matrixCursor() const
A 1-D Specialization of the Array class.
std::vector< double > Vector
IPosition latticeShape() const
Function which returns the shape of the Lattice being iterated through.
A read/write lattice iterator.
void reset()
Function which resets the cursor to the beginning of the Lattice and resets the number of steps taken...
IPosition position() const
Function which returns the current position of the beginning of the cursor within the Lattice...
A 3-D Specialization of the Array class.
IPosition endPosition() const
Function which returns the current position of the end of the cursor.
Bool operator++()
Increment operator - increment the cursor to the next position.
LatticeIterator< T > & operator=(const LatticeIterator< T > &other)
Assignment uses reference semantics (ie.
RO_LatticeIterator< T > copy() const
Make a copy of the iterator object.
const Array< T > & cursor() const
A 2-D Specialization of the Array class.
Bool operator--()
Decrement operator - decrement the cursor to the previous position.
LatticeIterator()
The default constructor creates an empty object which is practically unusable.
Matrix< T > & rwMatrixCursor()
Bool atStart() const
Function which returns a value of "True" if the cursor is at the beginning of the Lattice...
ABSTRACT CLASSES Deliberately vague to be general enough to allow for many different types of data
Bool ok() const
Function which checks the internals of the class for consistency.
A readonly iterator for Lattices.
const Cube< T > & cubeCursor() const
Bool atEnd() const
Function which returns a value of "True" if an attempt has been made to move the cursor beyond the en...
CountedPtr< LatticeIterInterface< T > > itsIterPtr
The pointer to the Iterator.
A templated, abstract base class for array-like objects.
Referenced counted pointer for constant data.
Lattice< T > & lattice() const
Return the underlying lattice.
Matrix< T > & woMatrixCursor()
Vector< T > & woVectorCursor()
bool Bool
Define the standard types used by Casacore.
RO_LatticeIterator()
The default constructor creates an empty object which is practically unusable.
template <class T, class U> class vector;
LatticeIterator< T > copy() const
Make a copy of the iterator object.
IPosition cursorShape() const
Function which returns the shape of the cursor which is iterating through the Lattice.
Bool ok() const
Function which checks the internals of the class for consistency.
Bool isNull() const
Is the iterator object empty?
uInt nsteps() const
Function to return the number of steps (increments or decrements) taken since construction (or since ...
Cube< T > & rwCubeCursor()
RO_LatticeIterator< T > & operator=(const RO_LatticeIterator< T > &other)
Assignment uses reference semantics (ie.
const Vector< T > & vectorCursor() const
Functions which returns a window to the data in the Lattice.
~LatticeIterator()
destructor (cleans up dangling references and releases memory)
Vector< T > & rwVectorCursor()
Functions to return a window to the data in the Lattice.
Cube< T > & woCubeCursor()
Abstract base class to steer lattice iterators.
#define casacore
<X11/Intrinsic.h> #defines true, false, casacore::Bool, and String.