28 #ifndef CASA_ARRAYPOSITER_H
29 #define CASA_ARRAYPOSITER_H
127 virtual void reset();
A Vector of integers, for indexing into Array<T> objects.
Non-templated base class for templated Array class.
uInt nextStep()
Advance cursor to its next position and tell which dimension stepped.
virtual void next()
Advance the cursor to its next position.
const IPosition & cursorAxes() const
Return the cursor axes.
ArrayPositionIterator(const IPosition &shape, const IPosition &origin, uInt byDim)
Define the shape and origin of the volume the cursor will step through.
const IPosition & iterAxes() const
Return the iteration axes.
virtual void set(const IPosition &cursorPos)
Set the cursor to the given position.
virtual void reset()
Reset the cursor to the beginning of the volume.
virtual ArrayBase & getArray()
Get the array in the cursor.
Bool pastEnd() const
Returns true if the cursor has moved past the end of its volume.
uInt dimIter() const
What is the dimensionality of the "step" the cursor takes, i.e.
IPosition endPos() const
Return the end position of the cursor.
uInt ndim() const
What is the dimensionality of the volume we are iterating through?
bool Bool
Define the standard types used by Casacore.
void setup(uInt byDim)
Setup the object for the constructor.
TableExprNode shape(const TableExprNode &array)
Function operating on any scalar or array resulting in a Double array containing the shape...
Bool atStart() const
Returns true of the cursor is at the origin.
Iterate an IPosition through the shape of an Array.
uInt nelements() const
The number of elements in this IPosition.
const IPosition & pos() const
Return the position of the cursor.
virtual ~ArrayPositionIterator()
#define casacore
<X11/Intrinsic.h> #defines true, false, casacore::Bool, and String.