casa
5.7.0-16
|
Class to iterate through a ConcatRows object. More...
#include <ConcatRows.h>
Public Member Functions | |
ConcatRowsIter (const ConcatRows &) | |
Construct the iterator on a ConcatRows object. More... | |
ConcatRowsIter (const ConcatRows &, uInt start, uInt end, uInt incr=1) | |
Construct the iterator on a ConcatRows object for the given row range. More... | |
Bool | pastEnd () const |
Is the iterator past the end? More... | |
void | operator++ () |
Go the next chunk. More... | |
void | operator++ (int) |
void | next () |
RefRows | getChunk () const |
Get the current chunk. More... | |
uInt | tableNr () const |
Get the nr of the table the current chunk is in. More... | |
Private Attributes | |
const ConcatRows * | itsRows |
Vector< uInt > | itsChunk |
uInt | itsStart |
uInt | itsEnd |
uInt | itsIncr |
uInt | itsPos |
Bool | itsPastEnd |
Class to iterate through a ConcatRows object.
Internal
ConcatRowsSliceIter is useful to iterate through a ConcatRows object. It is possible to define for which row especially if the ConcatRows object contains slices. Each step in the iteration returns a Slice object containing the next slice in the ConcatRows object.
It is used in Table and data manager classes (e.g. StManColumn).
This example shows how to iterate through a ConcatRows object (giving a slice) and through each of the slices.
Definition at line 194 of file ConcatRows.h.
|
explicit |
Construct the iterator on a ConcatRows object.
It is set to the full range.
casacore::ConcatRowsIter::ConcatRowsIter | ( | const ConcatRows & | , |
uInt | start, | ||
uInt | end, | ||
uInt | incr = 1 |
||
) |
Construct the iterator on a ConcatRows object for the given row range.
|
inline |
Get the current chunk.
Definition at line 218 of file ConcatRows.h.
References itsChunk, and casacore::True.
void casacore::ConcatRowsIter::next | ( | ) |
Referenced by operator++().
|
inline |
|
inline |
Definition at line 212 of file ConcatRows.h.
References next().
|
inline |
|
inline |
Get the nr of the table the current chunk is in.
Definition at line 222 of file ConcatRows.h.
References itsPos.
Definition at line 227 of file ConcatRows.h.
Referenced by getChunk().
|
private |
Definition at line 229 of file ConcatRows.h.
|
private |
Definition at line 230 of file ConcatRows.h.
|
private |
Definition at line 232 of file ConcatRows.h.
Referenced by pastEnd().
|
private |
Definition at line 231 of file ConcatRows.h.
Referenced by tableNr().
|
private |
Definition at line 226 of file ConcatRows.h.
|
private |
Definition at line 228 of file ConcatRows.h.