28 #ifndef CASA_ARRAYITER_H
29 #define CASA_ARRAYITER_H
72 template<
class T>
class ArrayIterator :
public ArrayPositionIterator
108 virtual void set (
const IPosition& cursorPos);
112 virtual void reset();
179 :
ai(const_cast<
Array<T>&>(arr),byDim) {}
184 :
ai(const_cast<
Array<T>&>(arr),axes,axesAreCursor) {}
231 #ifndef CASACORE_NO_AUTO_TEMPLATES
232 #include <casacore/casa/Arrays/ArrayIter.tcc>
233 #endif //# CASACORE_NO_AUTO_TEMPLATES
A Vector of integers, for indexing into Array<T> objects.
Non-templated base class for templated Array class.
ReadOnlyArrayIterator< T > & operator=(const ReadOnlyArrayIterator< T > &)
virtual void reset()
Reset the cursor to the beginning.
void next()
Move the cursor to the next position.
const Array< T > & array()
Return the cursor.
Iterate an Array cursor through another Array.
Array< T > * ap_p
A pointer to the cursor.
void init(const Array< T > &)
helper function to centralize construction work
ReadOnlyArrayIterator(const Array< T > &arr, uInt byDim=1)
Step through array "arr" using a cursor of dimensionality "byDim".
ReadOnlyArrayIterator(const Array< T > &arr, const IPosition &axes, Bool axesAreCursor=True)
Step through an array for the given iteration axes.
virtual void set(const IPosition &cursorPos)
Set the cursor to the given position.
Array< T > pOriginalArray_p
const IPosition & pos() const
virtual void next()
Move the cursor to the next position.
bool Bool
Define the standard types used by Casacore.
void set(const IPosition &cursorPos)
Set the cursor to the given position.
Iterate a const Array cursor through a const Array.
template <class T, class U> class vector;
ArrayIterator< T > & operator=(const ArrayIterator< T > &)
virtual ArrayBase & getArray()
Get the array in the cursor.
ArrayIterator(const Array< T > &arr, uInt byDim=1)
Step through array "arr" over the first byDim axes (using a cursor of dimensionality "byDim")...
Array< T > & array()
Return the cursor.
void reset()
Reset the cursor to the beginning.
void apSetPointer(Int stepDim)
helper function to set the pointer to the new data position in ap after a step in the given dimension...
Bool atStart() const
The same as the functions in ArrayPositionIterator.
#define casacore
<X11/Intrinsic.h> #defines true, false, casacore::Bool, and String.