Symbian
Symbian Developer Library

SYMBIAN OS V9.4

Feedback

[Index] [Previous] [Next]

#include <D32DBMS.H>
Link against: edbms.lib

Class TDbColSetIter

class TDbColSetIter;

Description

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

Members

Defined in TDbColSetIter:


Construction and destruction


TDbColSetIter(const CDbColSet &)

IMPORT_C TDbColSetIter(const CDbColSet &aColSet);

Description

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

Parameters

const CDbColSet &aColSet

The column set to iterate over.

[Top]


Member functions


operator TAny *()const

inline operator TAny *() const;

Description

Return value


operator *()const

inline const TDbCol& operator *() const;

Description

Dereferences the iterator on the current column definition.

Return value

const TDbCol &

A const reference to the current column definition.


operator->()const

inline const TDbCol* operator->() const;

Description

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

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

Return value

const TDbCol *

A const pointer to the current column definition.


operator++()

IMPORT_C TDbColSetIter& operator++();

Description

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.

Return value

TDbColSetIter &

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


operator++(TInt)

inline TDbColSetIter operator++(TInt);

Description

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

Return value

TDbColSetIter

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


Col()const

inline TDbColNo Col() const;

Description

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

Return value

TDbColNo

The column ordinal of the current column definition.