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> 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) {}
197 void set (
const IPosition& cursorPos) {ai.set(cursorPos);}
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.
Bool atStart() const
The same as the functions in ArrayPositionIterator.
Non-templated base class for templated Array class.
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.
const IPosition & pos() const
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.
Array< T > pOriginalArray_p
virtual void next()
Move the cursor to the next position.
bool Bool
Define the standard types used by Casacore.
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...
this file contains all the compiler specific defines