跳至主内容
框架 无框架

类IloNumCollection

定义文件: ilconcert/ilocollection.h
IloNumCollection的地图IloNumCollectionIloNumSetIloNumCollectionIloDiscreteDataCollectionIloDataCollection
用于表示可枚举的浮点数据集合的类。

浮点离散数据的抽象类。 可以使用迭代器对该域进行枚举。

另请参阅:

方法概要
public IloNumCollectionI *getImpl() const
public IloNumgetValue(IloInt index) const
public IloNumCollection(IloNumCollectionI * impl)
从 "IloDiscreteDataCollection继承的方法
getImpl, getIndex, getIndex, getIndex, getIndex, getIndex, getSize, IloDiscreteDataCollection, IloDiscreteDataCollection, isOrdered, isReversed, isSorted, iterator
从 "IloDataCollection继承的方法
display, end, getEnv, getName, isIntRange, isIntSet, isNumRange, isNumSet, isSymbolSet, isTupleSet, sort, sort, sort, sort
方法详细信息

IloNumCollection

publicIloNumCollection(IloNumCollectionI *impl)

构造函数。

参数:

内含
指向该类实现对象的指针。

getImpl

公共IloNumCollectionI*getImpl() 常量

该成员函数返回指向调用可提取对象的实现对象的指针。 当您需要确保在多种情况下使用同一个调用提取对象副本时,这个功能非常有用。

返回:

指向调用可提取对象的实现对象的指针。

getValue

publicIloNum getValue(IloInt index) const

该成员函数返回给定索引处的值。

参数:

索引
要返回值的索引。

返回:

给定索引处的值。