NO FRAMES

Class IloSolutionIterator<E>

Definition file: ilconcert/ilosolution.h
This template class creates a typed iterator over solutions.

This template class creates a typed iterator over solutions. You can use this iterator to discover all extractable objects added to a solution and of a particular type. The type is denoted by E in the template.

This iterator is not robust. If the variable at the current position is deleted from the solution being iterated over, the behavior of this iterator afterward is undefined.

An iterator created with this template differs from an instance of IloSolution::Iterator. An instance of IloSolution::Iterator works on all extractable objects within a given solution (an instance of IloSolution). In contrast, an iterator created with this template only iterates over extractable objects of the specified type.

See Also:

Constructor Summary
public IloSolutionIterator(IloSolution s)
Method Summary
public Eoperator *() const
public voidoperator++()
Constructor Detail

IloSolutionIterator

public IloSolutionIterator(IloSolution s)

This constructor creates an iterator for instances of the class E.


Method Detail

operator *

public E operator *() const

This operator returns the current element, the one to which the invoking iterator points. This current element is a handle to an extractable object (not a pointer to the implementation object).


operator++

public void operator++()

This operator advances the iterator by one position.