FRAMES NO FRAMES

Class IloSolutionPool::Iterator

Definition file: ilsolver/iimpool.h
Include file: <ilsolver/iim.h>
brief Iterates over all the instances of IloSolution in the pool.

An instance of this class is an iterator capable of traversing all instances of IloSolution contained in the pool.

Constructor Summary
public Iterator(IloSolutionPool pool)
Method Summary
public IloBoolok() const
public IloSolutionoperator*() const
public Iterator &operator++()
Constructor Detail

Iterator

public Iterator(IloSolutionPool pool)
brief Creates an iterator which will iterate over a pool.

This constructor creates an iterator to traverse the pool pool.


Method Detail

ok

public IloBool ok() const
brief Indicates whether all items have already been scanned.

This operator returns true if and only if items remain to be scanned.


operator*

public IloSolution operator*() const
brief Returns the current item.

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


operator++

public Iterator & operator++()
brief Advances the iterator to the next pool element.

This operator advances the iterator to the next pool element and returns a reference to the invoking iterator.