Location:
d32dbms.h
Link against: edbms.lib
TDbColSetIter
Supported from 5.0
Provides a useful way to iterate over the contents of a column set.
Defined in TDbColSetIter
:
Col()
, TDbColSetIter()
, operator Tany*()
, operator*()
, operator++()
, operator->()
TDbColSetIter(const CDbColSet& aColSet);
Constructs a column set iterator over a column set. The iterator now references the first column in the set.
|
operator TAny*() const;
Tests if the iterator can be dereferenced. This operator is
called implicitly when a TDbColSetIter
is used in conditional
expressions such as:
if (iter)
or while
(iter)
|
const TDbCol& operator*() const;
Dereferences the iterator on the current column definition.
|
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)
|
TDbColNo Col() const;
Returns a column ordinal in the set for the currently referenced column definition.
|
TDbColSetIter& operator++();
Moves the iterator to the next column in the set — pre increment operator.
|
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.
|
|