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

An instance of the nested class IloSymbolSet::Iterator is an
iterator that traverses the elements of a finite set of string values (an
instance of IloSymbolSet).
See Also:
| Method Summary | |
|---|---|
public | Iterator(const IloSymbolSet coll) |
public IloBool | ok() const |
public const char * | operator*() |
public void | operator++() |
| Method Detail |
|---|
Constructor for the iterator on an IloSymbolSet.
| coll |
is the collection you want to iterate on.
|
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:
char* val;
for(IloSymbolSet::Iterator iter(set); iter.ok(); ++iter){
val = (char*)*iter;
// do something with val
}IloTrue if there is a current element and the invoking iterator points to it. Returns the string currently pointed to by the iterator.
This operator advances the iterator to point to the next value in the dataset.