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

IloDataIterator is a class used to enumerate a collection.
See Also:
| Method Summary | |
|---|---|
public const IloDiscreteDataCollectionI * | getCollection() const |
public IloBool | ok() const |
public void | operator++() |
| Method Detail |
|---|
This member function returns a data collection.
This member function is used to determine whether there is a current element and the invoking iterator points to it.
To traverse the elements of a finite set of pointers, use the following code:
IloInt val;
for(IloXXX::Iterator iter(set); iter.ok(); ++iter){
val = *iter;
// do something with val
}IloTrue if there is a current element and the invoking iterator points to it. Otherwise, it returns IloFalse. This operator advances the iterator to point to the next value in the data set.