TDbColSetIter Class Reference

class TDbColSetIter

Provides a useful way to iterate over the contents of a column set.

Constructor & Destructor Documentation

TDbColSetIter(const CDbColSet &)

IMPORT_CTDbColSetIter(const CDbColSet &aColSet)

Parameters

const CDbColSet & aColSet

Member Functions Documentation

Col()

TDbColNo Col()const [inline]

Returns a column ordinal in the set for the currently referenced column definition.

The column ordinal of the current column definition.

operator TAny *()

operator TAny *()const [inline]

operator*()

const TDbCol &operator*()const [inline]

Dereferences the iterator on the current column definition.

A const reference to the current column definition.

operator++()

IMPORT_C TDbColSetIter &operator++()

operator++(TInt)

TDbColSetIter operator++(TInt)[inline]

Moves the iterator to the next column in the set post increment operator.

Note that this is implemented in terms of the pre-increment operator, and is less efficient.

A copy of this iterator, referring to the column definition before the increment operation is performed.

Parameters

TInt

operator->()

const TDbCol *operator->()const [inline]

Gets a member of the currently referenced column definition. This enables the use of the following constructs:

if (iter->iType==EDbColText && iter->iMaxLength<50)

A const pointer to the current column definition.

Member Data Documentation

const CArrayPakFlat< TDbCol > * iArray

const CArrayPakFlat< TDbCol > *iArray[private]

const TDbCol * iColumn

const TDbCol *iColumn[private]

TInt iIndex

TInt iIndex[private]