casa  $Rev:20696$
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
Public Member Functions | Protected Member Functions | Protected Attributes | Private Member Functions
casa::BaseTableIterator Class Reference

Base class for table iterator. More...

#include <BaseTabIter.h>

List of all members.

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.
BaseTableIteratorclone () const
 Clone this iterator.
virtual ~BaseTableIterator ()
virtual void reset ()
 Reset the iterator (i.e.
virtual BaseTablenext ()
 Return the next group.

Protected Member Functions

 BaseTableIterator (const BaseTableIterator &)
 Copy constructor (to be used by clone)

Protected Attributes

BaseTablesortTab_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

BaseTableIteratoroperator= (const BaseTableIterator &)
 Assignment is not needed, because the assignment operator in the envelope class TableIterator has reference semantics.

Detailed Description

Base class for table iterator.

Intended use:

Internal

Review Status

Reviewed By:
UNKNOWN
Date Reviewed:
before2004/08/25

Prerequisite

Etymology

BaseTableIterator is the base class for the classes doing the actual iterating through a table.

Synopsis

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.


Constructor & Destructor Documentation

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.

Copy constructor (to be used by clone)


Member Function Documentation

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).


Member Data Documentation

Definition at line 114 of file BaseTabIter.h.

Definition at line 113 of file BaseTabIter.h.

Definition at line 112 of file BaseTabIter.h.

Definition at line 109 of file BaseTabIter.h.

Definition at line 111 of file BaseTabIter.h.

Definition at line 110 of file BaseTabIter.h.

Definition at line 108 of file BaseTabIter.h.


The documentation for this class was generated from the following file: