| class TDbColSetIter |
Provides a useful way to iterate over the contents of a column set.
| Public Member Functions | |
|---|---|
| TDbColSetIter(const CDbColSet &) | |
| TDbColNo | Col() |
| operator TAny *() | |
| const TDbCol & | operator*() |
| IMPORT_C TDbColSetIter & | operator++() |
| TDbColSetIter | operator++(TInt) |
| const TDbCol * | operator->() |
| Private Attributes | |
|---|---|
| const CArrayPakFlat< TDbCol > * | iArray |
| const TDbCol * | iColumn |
| TInt | iIndex |
| IMPORT_C | TDbColSetIter | ( | const CDbColSet & | aColSet | ) |
| const CDbColSet & aColSet |
| TDbColNo | Col | ( | ) | const [inline] |
Returns a column ordinal in the set for the currently referenced column definition.
The column ordinal of the current column definition.
| const TDbCol & | operator* | ( | ) | const [inline] |
Dereferences the iterator on the current column definition.
A const reference to the current column definition.
| 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.
A copy of this iterator, referring to the column definition before the increment operation is performed.
| TInt |
| 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)
A const pointer to the current column definition.