NO FRAMES

Class IloExpr::LinearIterator

Definition file: ilconcert/iloexpression.h
An iterator over the linear part of an expression.

An instance of the nested class IloExpr::LinearIterator is an iterator that traverses the linear part of an expression.

Method Summary
public IloNumgetCoef()
public IloNumVargetVar()
public IloBoolok()
public voidoperator++()
Method Detail

getCoef

public IloNum getCoef()

This member function returns the coefficient of the current term.


getVar

public IloNumVar getVar()

This member function returns the variable of the current term.


ok

public IloBool ok()

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


operator++

public void operator++()

This operator advances the iterator to point to the next term of the linear part of the expression.