Go to the documentation of this file.
28 #ifndef CASA_ARRAYPOSITER_H
29 #define CASA_ARRAYPOSITER_H
31 #include <casacore/casa/aips.h>
33 #include <casacore/casa/Arrays/IPosition.h>
A Vector of integers, for indexing into Array<T> objects.
virtual ArrayBase & getArray()
Get the array in the cursor.
void setup(uInt byDim)
Setup the object for the constructor.
void setup(const IPosition &axes, Bool axesAreCursor)
uInt dimIter() const
What is the dimensionality of the "step" the cursor takes, i.e.
Non-templated base class for templated Array class.
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.
uInt nextStep()
Advance cursor to its next position and tell which dimension stepped.
ArrayPositionIterator(const IPosition &shape, const IPosition &axes, Bool axesAreCursor=True)
Step through an array using the given axes.
ArrayPositionIterator(const IPosition &shape, uInt byDim)
Bool atStart() const
Returns true of the cursor is at the origin.
const IPosition & iterAxes() const
Return the iteration axes.
TableExprNode shape(const TableExprNode &array)
Function operating on any scalar or array resulting in a Double array containing the shape.
IPosition endPos() const
Return the end position of the cursor.
virtual void next()
Advance the cursor to its next position.
uInt ndim() const
What is the dimensionality of the volume we are iterating through?
this file contains all the compiler specific defines
const IPosition & pos() const
Return the position of the cursor.
uInt nelements() const
The number of elements in this IPosition.
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 ~ArrayPositionIterator()
Iterate an IPosition through the shape of an Array.
bool Bool
Define the standard types used by Casacore.
Bool pastEnd() const
Returns true if the cursor has moved past the end of its volume.