28 #ifndef CASA_ARRAYPOSITER_2_H
29 #define CASA_ARRAYPOSITER_2_H
120 bool axesAreCursor=
true);
Non-templated base class for templated Array class.
size_t dimIter() const
What is the dimensionality of the "step" the cursor takes, i.e.
void setup(const IPosition &axes, bool axesAreCursor)
virtual ArrayBase & getArray()
Get the array in the cursor.
const IPosition & pos() const
Return the position of the cursor.
const IPosition & iterAxes() const
Return the iteration axes.
ArrayPositionIterator(const IPosition &shape, const IPosition &axes, bool axesAreCursor=true)
Step through an array using the given axes.
IPosition endPos() const
Return the end position of the cursor.
const IPosition & cursorAxes() const
Return the cursor axes.
ArrayPositionIterator(const IPosition &shape, size_t byDim)
ArrayPositionIterator(const IPosition &shape, const IPosition &origin, size_t byDim)
Define the shape and origin of the volume the cursor will step through.
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.
size_t nextStep()
Advance cursor to its next position and tell which dimension stepped.
size_t ndim() const
What is the dimensionality of the volume we are iterating through?
bool atStart() const
Returns true of the cursor is at the origin.
virtual ~ArrayPositionIterator()
virtual void next()
Advance the cursor to its next position.
bool pastEnd() const
Returns true if the cursor has moved past the end of its volume.
void setup(size_t byDim)
Setup the object for the constructor.
size_t nelements() const
The number of elements in this IPosition.
this file contains all the compiler specific defines
TableExprNode shape(const TableExprNode &array)
Function operating on any scalar or array resulting in a Double array containing the shape.