Class to iterate through a RefRows object.
Intended use:
Internal
Review Status
- Reviewed By:
- UNKNOWN
- Date Reviewed:
- before2004/08/25
- Test programs:
- tRefRows
Prerequisite
Synopsis
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).
Example
This example shows how to iterate through a RefRows object (giving a slice) and through each of the slices.
void somefunc (const RefRows& rownrs)
while (! rowiter.pastEnd()) {
rownr_t rownr = rowiter.sliceStart();
rownr_t incr = rowiter.sliceIncr();
while (rownr <= end) {
rownr += incr;
}
rowiter++;
}
}
RefRowsSliceIter(const RefRows &)
Construct the iterator on a RefRows object.
uInt64 rownr_t
Define the type of a row number in a table.
Definition at line 218 of file RefRows.h.