| Overview | Group | Tree | Graph | Index | Concepts |

An instance of the class IloAnyTupleSetIterator is an iterator that traverses
the elements of a finite set of tuples of enumerated values (instance of
IloAnyTupleSet).
See Also:
IlcAnyTupleSet documented in the ILOG Solver Reference Manual , IloAnyTupleSet
| Constructor Summary | |
|---|---|
public | IloAnyTupleSetIterator(const IloEnv, IloAnyTupleSet) |
| Method Summary | |
|---|---|
public IloBool | ok() |
public IloAnyArray | 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:
IloAnyTupleSet val;
for(IloAnyTupleSetIterator 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.