casa
$Rev:20696$
|
Base class for table iterator. More...
#include <BaseTabIter.h>
Public Member Functions | |
BaseTableIterator (BaseTable *, const Block< String > &columnNames, const Block< CountedPtr< BaseCompare > > &, const Block< Int > &orders, int option) | |
Create the table iterator to iterate through the given columns in the given order. | |
BaseTableIterator * | clone () const |
Clone this iterator. | |
virtual | ~BaseTableIterator () |
virtual void | reset () |
Reset the iterator (i.e. | |
virtual BaseTable * | next () |
Return the next group. | |
Protected Member Functions | |
BaseTableIterator (const BaseTableIterator &) | |
Copy constructor (to be used by clone) | |
Protected Attributes | |
BaseTable * | sortTab_p |
uInt | lastRow_p |
uInt | nrkeys_p |
Block< void * > | lastVal_p |
Block< void * > | curVal_p |
PtrBlock< BaseColumn * > | colPtr_p |
Block< CountedPtr< BaseCompare > > | cmpObj_p |
Private Member Functions | |
BaseTableIterator & | operator= (const BaseTableIterator &) |
Assignment is not needed, because the assignment operator in the envelope class TableIterator has reference semantics. |
Base class for table iterator.
Internal
BaseTableIterator is the base class for the classes doing the actual iterating through a table.
BaseTableIterator is the base class for the table iterators. It is a letter class of the envelope TableIterator. Currently there are no classes derived from BaseTableIterator, since it can do all the work itself. However, in the future this need not to be true anymore.
BaseTableIterator iterates by sorting the table in the required order and then creating a RefTable for each step containing the rows for that iteration step. Each iteration step assembles the rows with equal key values.
Definition at line 83 of file BaseTabIter.h.
casa::BaseTableIterator::BaseTableIterator | ( | BaseTable * | , |
const Block< String > & | columnNames, | ||
const Block< CountedPtr< BaseCompare > > & | , | ||
const Block< Int > & | orders, | ||
int | option | ||
) |
Create the table iterator to iterate through the given columns in the given order.
The given compare objects will be used for the sort and to compare if values are equal. If a comare object is null, the default ObjCompare<T> will be used.
virtual casa::BaseTableIterator::~BaseTableIterator | ( | ) | [virtual] |
casa::BaseTableIterator::BaseTableIterator | ( | const BaseTableIterator & | ) | [protected] |
Copy constructor (to be used by clone)
BaseTableIterator* casa::BaseTableIterator::clone | ( | ) | const |
Clone this iterator.
virtual BaseTable* casa::BaseTableIterator::next | ( | ) | [virtual] |
Return the next group.
BaseTableIterator& casa::BaseTableIterator::operator= | ( | const BaseTableIterator & | ) | [private] |
Assignment is not needed, because the assignment operator in the envelope class TableIterator has reference semantics.
Declaring it private, makes it unusable.
virtual void casa::BaseTableIterator::reset | ( | ) | [virtual] |
Reset the iterator (i.e.
restart iteration).
Block<CountedPtr<BaseCompare> > casa::BaseTableIterator::cmpObj_p [protected] |
Definition at line 114 of file BaseTabIter.h.
PtrBlock<BaseColumn*> casa::BaseTableIterator::colPtr_p [protected] |
Definition at line 113 of file BaseTabIter.h.
Block<void*> casa::BaseTableIterator::curVal_p [protected] |
Definition at line 112 of file BaseTabIter.h.
uInt casa::BaseTableIterator::lastRow_p [protected] |
Definition at line 109 of file BaseTabIter.h.
Block<void*> casa::BaseTableIterator::lastVal_p [protected] |
Definition at line 111 of file BaseTabIter.h.
uInt casa::BaseTableIterator::nrkeys_p [protected] |
Definition at line 110 of file BaseTabIter.h.
BaseTable* casa::BaseTableIterator::sortTab_p [protected] |
Definition at line 108 of file BaseTabIter.h.