NO FRAMES

Class IloAnySet::Iterator

Definition file: ilconcert/iloanyset.h
An iterator to traverse the elements of IloAnySet.

An instance of the nested class IloAnySet::Iterator is an iterator that traverses the elements of a finite set of pointers (an instance of IloAnySet).

See Also:

Method Summary
public IloBoolok()
public IloAnyoperator *()
public voidoperator++()
Method Detail

ok

public IloBool ok()

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 pointers, use the following code:

 IloAny val;
 for(IloAnySet::Iterator iter(set); iter.ok(); ++iter){
         val = *iter;
         // do something with val
 }

operator *

public IloAny operator *()

This operator returns the current element, the one to which the invoking iterator points.


operator++

public void operator++()

This operator advances the iterator to point to the next value in the set.