NO FRAMES

Class IloIntExpr

Definition file: ilconcert/iloexpression.h
The class of integer expressions in Concert Technology.

Integer expressions in Concert Technology are represented using objects of type IloIntEpr.

Constructor Summary
public IloIntExpr()
public IloIntExpr(IloIntExprI * impl)
public IloIntExpr(const IloIntExprArg arg)
public IloIntExpr(const IloIntLinExprTerm term)
public IloIntExpr(const IloEnv env, IloInt constant=0)
Method Summary
public IloIntExprI *getImpl() const
public IloIntExpr &operator *=(IloInt val)
public IloIntExpr &operator+=(const IloIntExprArg expr)
public IloIntExpr &operator+=(IloInt val)
public IloIntExpr &operator-=(const IloIntExprArg expr)
public IloIntExpr &operator-=(IloInt val)
Inherited Methods from IloIntExprArg
getImpl
Inherited Methods from IloNumExprArg
getImpl
Inherited Methods from IloExtractable
asConstraint, asIntExpr, asModel, asNumExpr, asObjective, asVariable, end, getEnv, getId, getImpl, getName, getObject, isConstraint, isIntExpr, isModel, isNumExpr, isObjective, isVariable, setName, setObject
Constructor Detail

IloIntExpr

public IloIntExpr()
This constructor creates an empty handle. You must initialize it before you use it.

IloIntExpr

public IloIntExpr(IloIntExprI * impl)
This constructor creates a handle object from a pointer to an implementation object.

IloIntExpr

public IloIntExpr(const IloIntExprArg arg)

This constructor creates an integer expression using the undocumented class IloIntExprArg.


IloIntExpr

public IloIntExpr(const IloIntLinExprTerm term)

This constructor creates an integer expression with linear terms using the undocumented class IloIntLinExprTerm.


IloIntExpr

public IloIntExpr(const IloEnv env, IloInt constant=0)

This constructor creates a constant integer expression with the value constant that the user can modify subsequently with the operators +=, -=, ∗= in the environment env.


Method Detail

getImpl

public IloIntExprI * getImpl() const
This member function returns a pointer to the implementation object of the invoking handle.

operator *=

public IloIntExpr & operator *=(IloInt val)

This operator is recommended for building a Concert Technology expression in a loop. It is more efficient than x = x * ... .


operator+=

public IloIntExpr & operator+=(const IloIntExprArg expr)

This operator is recommended for building a Concert Technology expression in a loop. It is more efficient than x = x + ... .


operator+=

public IloIntExpr & operator+=(IloInt val)

This operator is recommended for building a Concert Technology expression in a loop. It is more efficient than x = x + ... .


operator-=

public IloIntExpr & operator-=(const IloIntExprArg expr)

This operator is recommended for building a Concert Technology expression in a loop. It is more efficient than x = x - ... .


operator-=

public IloIntExpr & operator-=(IloInt val)

This operator is recommended for building a Concert Technology expression in a loop. It is more efficient than x = x - ... .