Skip to main content
FRAMES NO FRAMES

Class IloIntExpr

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

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

Method Summary
public IloIntExprI *getImpl() const
public IloIntExpr()
public IloIntExpr(IloIntExprI * impl)
public IloIntExpr(const IloIntExprArg arg)
public IloIntExpr(const IloIntLinExprTerm term)
public IloIntExpr(const IloEnv env, IloInt constant=0)
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, IloIntExprArg, IloIntExprArg
Inherited Methods from IloNumExprArg
getImpl, IloNumExprArg, IloNumExprArg
Inherited Methods from IloExtractable
asConstraint, asIntExpr, asModel, asNumExpr, asObjective, asVariable, end, getEnv, getId, getImpl, getName, getObject, IloExtractable, isConstraint, isIntExpr, isModel, isNumExpr, isObjective, isVariable, removeFromAll, setLocation, setName, setObject
Method 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.


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 - ... .