Skip to main content
FRAMES NO FRAMES

Class IloSolutionIterator<>

Definition file: ilconcert/ilosolution.h
Map of IloSolutionIterator<>IloSolutionIterator<>IloSolutionIterator<>
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:

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

IloSolutionIterator

public IloSolutionIterator(IloSolution s)

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


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.