#include <d32dbms.h>
| class TDbColSetIter |
| Public Member Functions | |
|---|---|
| TDbColSetIter(const CDbColSet &) | |
| TDbColNo | Col() |
| operator TAny *() | |
| const TDbCol & | operator*() |
| IMPORT_C TDbColSetIter & | operator++() |
| TDbColSetIter | operator++(TInt) |
| const TDbCol * | operator->() |
Provides a useful way to iterate over the contents of a column set.
| IMPORT_C | TDbColSetIter | ( | const CDbColSet & | aColSet | ) |
Constructs a column set iterator over a column set. The iterator now references the first column in the set.
| Parameter | Description |
|---|---|
| aColSet | The column set to iterate over. |
| 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.
| const TDbCol & | operator* | ( | ) | const [inline] |
Dereferences the iterator on the current column definition.
Returns: A const reference to the current column definition.
| 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.
| 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.
| 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.