|
|
|
class TDbColSetIter;
Provides a useful way to iterate over the contents of a column set.
Defined in TDbColSetIter:
Col()constReturns a column ordinal in the set for the currently referenced column definiti...TDbColSetIter(const CDbColSet &)Constructs a column set iterator over a column set. The iterator now references ...operator *()constDereferences the iterator on the current column definition.operator TAny *()constoperator++()Moves the iterator to the next column in the set -- post increment operator.operator++(TInt)Moves the iterator to the next column in the set post increment operator.operator->()constGets a member of the currently referenced column definition. This enables the us...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.
|
inline const TDbCol& operator *() const;
Dereferences the iterator on the current column definition.
|
inline const TDbCol* operator->() const;
Gets a member of the currently referenced column definition. This enables the use of the following constructs:
if (iter->iType==EDbColText && iter->iMaxLength<50)
|
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.
|
inline TDbColSetIter operator++(TInt);
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.
|
|
inline TDbColNo Col() const;
Returns a column ordinal in the set for the currently referenced column definition.
|