NO FRAMES

Class IloModel::Iterator

Definition file: ilconcert/ilomodel.h
Nested class of iterators to traverse the extractable objects in a model.

An instance of this nested class is an iterator capable of traversing the extractable objects in a model.

An iterator of this class differs from one created by the template IloIterator. Instances of IloIterator traverse all the extractable objects of a given class (specified by E in the template) within a given environment (an instance of IloEnv), whether or not those extractable objects have been explicitly added to a model. Instances of IloModel::Iterator traverse only those extractable objects that have explicitly been added to a given model (an instance of IloModel).

See Also:

Constructor Summary
public Iterator(const IloModel model)
Method Summary
public IloBoolok() const
public IloExtractableoperator *()
public voidoperator++()
Constructor Detail

Iterator

public Iterator(const IloModel model)

This constructor creates an iterator to traverse the extractable objects in the model specified by model.


Method Detail

ok

public IloBool ok() const

This member function returns IloTrue if there is a current element and the iterator points to it. Otherwise, it returns IloFalse.


operator *

public IloExtractable operator *()

This operator returns the current extractable object, the one to which the invoking iterator points.


operator++

public void operator++()

This operator advances the iterator to point to the next extractable object in the model.