28 #ifndef LATTICES_LATTICEITERATOR_H 29 #define LATTICES_LATTICEITERATOR_H 32 #include <casacore/casa/aips.h> 33 #include <casacore/lattices/Lattices/Lattice.h> 34 #include <casacore/lattices/Lattices/LatticeIterInterface.h> 35 #include <casacore/casa/Utilities/CountedPtr.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;
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)
A 1-D Specialization of the Array class.
const Matrix< T > & matrixCursor() const
const Array< T > & cursor() const
A read/write lattice iterator.
IPosition position() const
Function which returns the current position of the beginning of the cursor within the Lattice...
Bool atStart() const
Function which returns a value of "True" if the cursor is at the beginning of the Lattice...
IPosition cursorShape() const
Function which returns the shape of the cursor which is iterating through the Lattice.
void reset()
Function which resets the cursor to the beginning of the Lattice and resets the number of steps taken...
Bool ok() const
Function which checks the internals of the class for consistency.
A 3-D Specialization of the Array class.
Bool operator++()
Increment operator - increment the cursor to the next position.
uInt nsteps() const
Function to return the number of steps (increments or decrements) taken since construction (or since ...
A 2-D Specialization of the Array class.
Bool operator--()
Decrement operator - decrement the cursor to the previous position.
RO_LatticeIterator< T > copy() const
Make a copy of the iterator object.
A readonly iterator for Lattices.
CountedPtr< LatticeIterInterface< T > > itsIterPtr
The pointer to the Iterator.
Lattice< T > & lattice() const
Return the underlying lattice.
A templated, abstract base class for array-like objects.
Referenced counted pointer for constant data.
Bool isNull() const
Is the iterator object empty?
const Vector< T > & vectorCursor() const
Functions which returns a window to the data in the Lattice.
Bool atEnd() const
Function which returns a value of "True" if an attempt has been made to move the cursor beyond the en...
bool Bool
Define the standard types used by Casacore.
RO_LatticeIterator()
The default constructor creates an empty object which is practically unusable.
const Cube< T > & cubeCursor() const
template <class T, class U> class vector;
IPosition endPosition() const
Function which returns the current position of the end of the cursor.
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.
this file contains all the compiler specific defines
Abstract base class to steer lattice iterators.