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_C TDbColSetIter ( 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.

operator TAny *()

operator TAny * ( ) const [inline]

operator*()

const TDbCol & operator* ( ) const [inline]

Dereferences the iterator on 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.

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)

Member Data Documentation

const CArrayPakFlat< TDbCol > * iArray

const CArrayPakFlat < TDbCol > * iArray [private]

const TDbCol * iColumn

const TDbCol * iColumn [private]

TInt iIndex

TInt iIndex [private]