|
| HDF5LattIter (const HDF5Lattice< T > &data, const LatticeNavigator &method, Bool useRef) |
| Construct the Iterator with the supplied data, and iteration strategy. More...
|
|
| HDF5LattIter (const HDF5LattIter< T > &other) |
| The copy constructor uses reference sematics for the PagedArray and copy semantics for the cursor and Navigator. More...
|
|
virtual | ~HDF5LattIter () |
| Destructor (cleans up dangling references and releases cursor memory) More...
|
|
HDF5LattIter< T > & | operator= (const HDF5LattIter< T > &other) |
| The assignment operator uses reference sematics for the PagedArray and copy semantics for the cursor and Navigator. More...
|
|
virtual LatticeIterInterface< T > * | clone () const |
| Clone the object. More...
|
|
| LatticeIterInterface () |
| Default constructor (for derived classes). More...
|
|
| LatticeIterInterface (const LatticeIterInterface< T > &other) |
| Copy constructor (copy semantics). More...
|
|
LatticeIterInterface & | operator= (const LatticeIterInterface< T > &other) |
| Assignment (copy semantics). More...
|
|
Lattice< T > & | lattice () |
| Return the underlying lattice. More...
|
|
Bool | operator++ () |
| Increment operator - increment the cursor to the next position. More...
|
|
Bool | operator++ (int) |
|
Bool | operator-- () |
| Decrement operator - decrement the cursor to the previous position. More...
|
|
Bool | operator-- (int) |
|
void | reset () |
| Function which resets the cursor to the beginning of the Lattice and resets the number of steps taken to zero. More...
|
|
Bool | atStart () const |
| Function which returns a value of "True" if the cursor is at the beginning of the Lattice, otherwise, returns "False". More...
|
|
Bool | atEnd () const |
| Function which returns "True" if the cursor has been incremented to the end of the lattice, otherwise, returns "False". More...
|
|
uInt | nsteps () const |
| Function to return the number of steps (increments or decrements) taken since construction (or since last reset). More...
|
|
IPosition | position () const |
| Function which returns the current position of the beginning of the cursor within the Lattice. More...
|
|
IPosition | endPosition () const |
| Function which returns the current position of the end of the cursor. More...
|
|
IPosition | latticeShape () const |
| Function which returns the shape of the Lattice being iterated through. More...
|
|
IPosition | cursorShape () const |
| Function which returns the shape of the cursor which is iterating through the Lattice. More...
|
|
virtual Vector< T > & | vectorCursor (Bool doRead, Bool autoRewrite) |
| Functions which returns a window to the data in the Lattice. More...
|
|
virtual Matrix< T > & | matrixCursor (Bool doRead, Bool autoRewrite) |
|
virtual Cube< T > & | cubeCursor (Bool doRead, Bool autoRewrite) |
|
virtual Array< T > & | cursor (Bool doRead, Bool autoRewrite) |
|
Bool | ok () const |
| Function which checks the internals of the class for consistency. More...
|
|
virtual void | readData (Bool doRead) |
| Do the actual read of the data. More...
|
|
virtual void | rewriteData () |
| Rewrite the cursor data and clear the rewrite flag. More...
|
|
virtual void | cursorUpdate () |
| Update the cursor for the next chunk of data (resize if needed). More...
|
|
void | allocateBuffer () |
| Allocate the internal buffer. More...
|
|
void | allocateCurPtr () |
| Allocate the nondegenerate array with the correct type. More...
|
|
void | setCurPtr2Cursor () |
| Synchronise the storage of itsCurPtr with itsCursor. More...
|
|
void | copyBase (const LatticeIterInterface< T > &other) |
| Copy the base data of the other object. More...
|
|
template<class T>
class casacore::HDF5LattIter< T >
A read/write Lattice iterator for PagedArrays.
Intended use:
Internal
Review Status
- Reviewed By:
- Peter Barnes
- Date Reviewed:
- 1999/10/30
- Test programs:
- tLatticeIterator
- Demo programs:
- dPagedArray
Prerequisite
Etymology
The HDF5LattIter class name is a contraction of Paged Array Iterator and reflects its role as the methods for iterating through Lattices which are resident on disk.
Synopsis
This class is not meant for general use. Instead class LatticeIterator should be used to iterate through a PagedArray
or any other Lattice object (like a ArrayLattice).
HDF5LattIter is derived from LatticeIterInterface and implements the iterator for a PagedArray object. This iterator is somewhat special because it sets the PagedArray cache size at the start of an iteration.
Motivation
For for each derivation of Lattice to make as efficient an iterator as possible. The letter/envelope scheme allowed us to hide the special bits in classes like the one you see here.
Template Type Argument Requirements (T)
-
Restricted to the type of the PagedArray argument in the constructors
Definition at line 92 of file HDF5LattIter.h.