跳至主内容
框架 无框架

类IloIntExpr

定义文件: ilconcert/iloexpression.h
IloIntExpr的地图IloIntExprIloIntExprIloIntExprArgIloNumExprArgIloExtractable
Concert 技术中的整数表达式类别。

Concert Technology 中的整数表达式使用 "IloIntExpr类型的对象表示。

方法概要
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)
从 "IloIntExprArg继承的方法
getImpl, IloIntExprArg, IloIntExprArg
从 "IloNumExprArg继承的方法
getImpl, IloNumExprArg, IloNumExprArg
从 "IloExtractable继承的方法
asConstraint, asIntExpr, asModel, asNumExpr, asObjective, asVariable, end, getEnv, getId, getImpl, getName, getObject, IloExtractable, isConstraint, isIntExpr, isModel, isNumExpr, isObjective, isVariable, removeFromAll, setLocation, setName, setObject
方法详细信息

IloIntExpr

publicIloIntExpr()
该构造函数创建一个空句柄。 使用前必须初始化。

IloIntExpr

publicIloIntExpr(IloIntExprI *impl)
该构造函数通过指向实现对象的指针创建一个句柄对象。

IloIntExpr

publicIloIntExpr(constIloIntExprArg arg)

该构造函数使用未注明的类 "IloIntExprArg创建一个整数表达式。


IloIntExpr

publicIloIntExpr(constIloIntLinExprTerm term)

该构造函数使用未注明的类 "IloIntLinExprTerm创建一个包含线性项的整数表达式。


IloIntExpr

public 'IloIntExpr(const 'IloEnv'环境, 'IloInt'常数=0)

该构造函数创建了一个值为 "constant的常量整数表达式,用户随后可以在环境 "env中使用运算符 "+=, -=, ∗=修改该表达式。


getImpl

publicIloIntExprI*getImpl() const
该成员函数返回一个指向调用句柄的实现对象的指针。

操作符*=

publicIloIntExpr&operator*=IloInt val)

建议使用此运算符在循环中构建 Concert 技术表达式。 它比 "x = x * ... 更有效。


操作符+=

publicIloIntExpr&operator+=(constIloIntExprArg expr)

建议使用此运算符在循环中构建 Concert 技术表达式。 它比 "x = x + ... 更有效。


操作符+=

publicIloIntExpr&operator+=IloInt val)

建议使用此运算符在循环中构建 Concert 技术表达式。 它比 "x = x + ... 更有效。


操作符-=

publicIloIntExpr&operator-=(constIloIntExprArg expr)

建议使用此运算符在循环中构建 Concert 技术表达式。 它比 "x = x - ... 更有效。


操作符-=

publicIloIntExpr&operator-=IloInt val)

建议使用此运算符在循环中构建 Concert 技术表达式。 它比 "x = x - ... 更有效。