Overview | Group | Tree | Graph | Index | Concepts |
An instance of the class IlcAnySetIterator
is an iterator
that traverses the elements of a finite set of pointers (instance of
IlcAnySet
).
For more information, see the concept Iterator.
See Also:
Constructor Summary | |
---|---|
public | IlcAnySetIterator(IlcAnySet set) |
Method Summary | |
---|---|
public IlcBool | ok() const |
public IlcAny | operator*() const |
public IlcAnySetIterator & | operator++() |
Constructor Detail |
---|
This constructor creates an iterator associated with set
to traverse its elements.
Method Detail |
---|
This member function returns IlcTrue
if there is a current element and
the invoking iterator points to it. Otherwise, it returns IlcFalse
.
To traverse the elements of a finite set of pointers, use the following code:
IlcAny val; for(IlcAnySetIterator iter(set); iter.ok(); ++iter){ val = *iter; // do something with val }
This operator returns the current element, the one to which the invoking iterator points.
This operator advances the iterator to point to the next value in the set.