Overview | Group | Tree | Graph | Index | Concepts |
An instance of the class IloIntTupleSetIterator
is an iterator that traverses
the elements of a finite set of tuples of enumerated values (instance of
IloIntTupleSet
).
See Also:
IlcIntTupleSet documented in the , IloIntTupleSet
Constructor Summary | |
---|---|
public | IloIntTupleSetIterator(const IloEnv, IloIntTupleSet) |
Method Summary | |
---|---|
public IloBool | ok() |
public IloIntArray | operator *() |
public void | operator++() |
Constructor Detail |
---|
This constructor creates an iterator associated with tSet
to traverse its
elements.
Method Detail |
---|
This member function returns IloTrue
if there is a current element and
invoking iterator points to it. Otherwise, it returns IloFalse
.
To traverse the elements of a finite set of tuples, use the following code:
IloIntTupleSet val; for(IloIntTupleSetIterator iter(env, tset); 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 tuple in the set.