Symbian
Symbian OS Library

SYMBIAN OS V9.3

[Index] [Spacer] [Previous] [Next]



Location: 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:
Col(), TDbColSetIter(), operator *(), operator TAny *(), operator++(), operator++(), operator->()


Construction and destruction


TDbColSetIter()

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 *()

inline operator TAny *() const;

Description

Return value


operator *()

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

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++()

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

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.