Go to the documentation of this file.
28 #ifndef CASA_ARRAYITER_H
29 #define CASA_ARRAYITER_H
31 #include <casacore/casa/aips.h>
32 #include <casacore/casa/Arrays/ArrayPosIter.h>
33 #include <casacore/casa/Arrays/Array.h>
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
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 > * ap_p
A pointer to the cursor.
void set(const IPosition &cursorPos)
Set the cursor to the given position.
Non-templated base class for templated Array class.
ArrayIterator(const ArrayIterator< T > &)
void reset()
Reset the cursor to the beginning.
ReadOnlyArrayIterator(const Array< T > &arr, const IPosition &axes, Bool axesAreCursor=True)
Step through an array for the given iteration axes.
Array< T > pOriginalArray_p
Bool atStart() const
The same as the functions in ArrayPositionIterator.
ArrayIterator< T > & operator=(const ArrayIterator< T > &)
virtual void reset()
Reset the cursor to the beginning.
virtual void set(const IPosition &cursorPos)
Set the cursor to the given position.
ReadOnlyArrayIterator< T > & operator=(const ReadOnlyArrayIterator< T > &)
ReadOnlyArrayIterator(const ReadOnlyArrayIterator< T > &)
Not implemented.
void next()
Move the cursor to the next position.
virtual ArrayBase & getArray()
this file contains all the compiler specific defines
virtual void next()
Move the cursor to the next position.
void apSetPointer(Int stepDim)
helper function to set the pointer to the new data position in ap after a step in the given dimension...
ReadOnlyArrayIterator(const Array< T > &arr, uInt byDim=1)
Step through array "arr" using a cursor of dimensionality "byDim".
Iterate a const Array cursor through a const Array.
const Array< T > & array()
Return the cursor.
void init(const Array< T > &)
helper function to centralize construction work
const IPosition & pos() const
template <class T, class U> class vector;
Array< T > & array()
Return the cursor.
bool Bool
Define the standard types used by Casacore.
ArrayIterator(const Array< T > &arr, const IPosition &axes, Bool axesAreCursor=True)
Step through an array using the given axes.