Skip to main content
FRAMES NO FRAMES

Class IloExpr::QuadIterator

Definition file: ilconcert/iloexpression.h
Map of IloExpr::QuadIteratorIloExpr::QuadIteratorIloExpr::QuadIterator
An iterator over quadratic terms in a linear expression.

This class implements an iterator capable of traversing quadratic terms in a linear expression.

Method Summary
public IloNumgetCoef() const
public IloNumVargetVar1() const
public IloNumVargetVar2() const
public IloBoolok() const
public voidoperator++()
Method Detail

getCoef

public IloNum getCoef() const

This member function returns the coefficient of the current term.


getVar1

public IloNumVar getVar1() const

This member function returns the first variable of the current term.


getVar2

public IloNumVar getVar2() const

This member function returns the second variable of the current term.


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 void operator++()

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