Overview | Group | Tree | Graph | Index | Concepts |
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 afterwards 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:
IloSolution, IloSolution::Iterator
Constructor Summary | |
---|---|
public | IloSolutionIterator(IloSolution) |
Method Summary | |
---|---|
public E | operator *() |
public void | operator++() |
Constructor Detail |
---|
This constructor creates an iterator for instances of the
class E
.
Method Detail |
---|
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).
This operator advances the iterator by one position.