casacore
|
Class to iterate through a RefRows object. More...
#include <RefRows.h>
Public Member Functions | |
RefRowsSliceIter (const RefRows &) | |
Construct the iterator on a RefRows object. More... | |
void | reset () |
Reset the iterator to the beginning. More... | |
Bool | pastEnd () const |
Is the iterator past the end? More... | |
void | operator++ () |
Go the next slice. More... | |
void | operator++ (int) |
void | next () |
rownr_t | sliceStart () const |
Get the current slice start, end, or increment. More... | |
rownr_t | sliceEnd () const |
rownr_t | sliceIncr () const |
Private Attributes | |
Vector< rownr_t > | itsRows |
Bool | itsSliced |
rownr_t | itsStart |
rownr_t | itsEnd |
rownr_t | itsIncr |
rownr_t | itsPos |
Bool | itsPastEnd |
Class to iterate through a RefRows object.
Internal
RefRowsSliceIter is useful to iterate through a RefRows object, especially if the RefRows object contains slices. Each step in the iteration returns a Slice object containing the next slice in the RefRows object.
It is used in Table and data manager classes (e.g. StManColumn).
This example shows how to iterate through a RefRows object (giving a slice) and through each of the slices.
casacore::RefRowsSliceIter::RefRowsSliceIter | ( | const RefRows & | ) |
Construct the iterator on a RefRows object.
It is set to the beginning.
void casacore::RefRowsSliceIter::next | ( | ) |
Referenced by operator++().
|
inline |
|
inline |
|
inline |
void casacore::RefRowsSliceIter::reset | ( | ) |
Reset the iterator to the beginning.
|
inline |
|
inline |
|
inline |
|
private |
Definition at line 255 of file RefRows.h.
Referenced by sliceEnd().
|
private |
Definition at line 256 of file RefRows.h.
Referenced by sliceIncr().
|
private |
|
private |
Definition at line 254 of file RefRows.h.
Referenced by sliceStart().