Skip to main content
FRAMES NO FRAMES

Class IloNumMapLightIterator

Definition file: ilopl/ilomap.h
Map of IloNumMapLightIteratorIloNumMapLightIteratorIloNumMapLightIterator
Class of iterators to traverse an array of OPL numeric decision expressions.

An instance of the class IloIntMapLightIterator is an iterator that traverses the elements of an IloIntMapLightIterator(instance of IloIntDExprMap).

Method Summary
public IloBoolok() const
public IloNumDExprI *operator*()
public voidoperator++()
Method Detail

ok

public IloBool ok() const

This member function is used to determine whether there is a current element and the invoking iterator points to it.

To traverse the elements of a finite set of pointers, use the following code:

 IloIntExprArg val;
 for(IloIntMapLightIterator iter(map); iter.ok(); ++iter){
         val = *iter;
         // do something with val
 }

Returns:

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

operator*

public IloNumDExprI * operator*()

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


operator++

public void operator++()

This operator advances the iterator to point to the next value in the data set.