Overview | Group | Tree | Graph | Index | Concepts |
An instance of the nested class IloIntSet::Iterator
is an
iterator that traverses the elements of a finite set of numeric values (an
instance of IloIntSet
).
See Also:
Constructor and Destructor Summary | |
---|---|
public | Iterator(const IloIntSet coll) |
Method Summary | |
---|---|
public IloBool | ok() const |
public IloInt | operator*() |
public void | operator++() |
Constructor and Destructor Detail |
---|
Creates an iterator over the given set.
Method Detail |
---|
This member function returns IloTrue
if there is a current element
and the invoking iterator points to it.
Otherwise, it returns IloFalse
.
To traverse the elements of a finite set of pointers, use the following code:
for(IloIntSet::Iterator iter(set); iter.ok(); ++iter){ IloInt val = *iter; // do something with val }
This operator returns the current value.
This operator advances the iterator to point to the next value in the dataset.