TDbColSetIter Class Reference

#include <d32dbms.h>

Link against: edbms.lib

class TDbColSetIter

Detailed Description

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

Constructor & Destructor Documentation

TDbColSetIter ( const CDbColSet & )

IMPORT_CTDbColSetIter(const CDbColSet &aColSet)

Constructs a column set iterator over a column set. The iterator now references the first column in the set.

ParameterDescription
aColSetThe column set to iterate over.

Member Function Documentation

Col ( )

TDbColNo Col()const [inline]

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

Returns: 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.

Returns: A const reference to the current column definition.

operator++ ( )

IMPORT_C TDbColSetIter &operator++()

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.

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

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.

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

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)

Returns: A const pointer to the current column definition.