跳至主内容
框架 无框架

类IlcCumulElementVarArray

定义文件: ilcp/cpext.h
包含文件: <ilcp/cpextilcp/cpext.h
IlcCumulElementVarArray的映射IlcCumulElementVarArrayIlcCumulElementVarArray
类 "IlcCumulElementVar的数组类。

类 "IlcCumulElementVarArray是 "IlcCumulElementVar实例数组的类。 该类的实例是从 0 开始索引的数组。

另请参阅:

方法概要
public IlcCumulElementVarArraygetCopy() const
public IlcCPEnginegetCPEngine() const
public IloIntgetSize() const
public IlcCumulElementVarArray(const IlcCPEngine cp, const IloInt size)
public IlcCumulElementVar &operator[](IlcInt index) const
方法详细信息

IlcCumulElementVarArray

publicIlcCumulElementVarArray(constIlcCPEngine cp, constIloInt size)

此构造函数创建一个长度为 "size的数组,初始化为空句柄。 参数 "size必须大于 0(零)。 数组的索引范围是 "[0 size)。 在使用数组之前,应分配数组中的每个元素。


getCopy

publicIlcCumulElementVarArray getCopy() const

该成员函数返回调用数组中受约束累积元素变量的副本。


getCPEngine

publicIlcCPEngine getCPEngine() const

该成员函数返回与调用数组相关的 "IlcCPEngine实例。


getSize

publicIloInt getSize() const

该成员函数返回调用数组中受约束累积元素变量的数量。


操作符[]

publicIlcCumulElementVar&operator[]IlcInt index) const

该下标操作符将返回与调用的受约束累积元素变量数组中给定的 "index相对应的受约束累积元素变量的引用。

将累积元素赋值到调用数组的索引位置不可逆转。