FRAMES NO FRAMES

Class IlcAnySetVarArrayIterator

Definition file: ilsolver/ilcset.h
Include file: <ilsolver/ilosolver.h>

Instances of the class IlcAnySetVarArrayIterator traverse the values of an array of sets of constrained enumerated variables.

For more information, see the concept Iterator.

See Also:

Constructor and Destructor Summary
public IlcAnySetVarArrayIterator(const IlcAnySetVarArray array)
Method Summary
public IlcBoolnext(IlcAnySetVar & variable)
Inherited Methods from IlcIntSetVarArrayIterator
next
Constructor and Destructor Detail

IlcAnySetVarArrayIterator

public IlcAnySetVarArrayIterator(const IlcAnySetVarArray array)

This constructor creates an iterator to traverse the values belonging to an array of sets of constrained enumerated variables. This iterator lets you iterate forward over the complete index range of the array.


Method Detail

next

public IlcBool next(IlcAnySetVar & variable)

This member function takes a reference to a constrained enumerated set variable and returns a Boolean value. It begins with the first element. It returns IlcFalse if there is no other element on which to iterate and IlcTrue otherwise. When it returns IlcTrue, it writes the next element of the iterator (forward iteration) to the argument.