Overview | Group | Tree | Graph | Index | Concepts |
IloExprArray
is the array class of the expressions class.
For each basic type, Concert Technology defines a corresponding array
class. IloExprArray
is the array class of the expressions
class (IloExpr
) for a model.
Instances of IloExprArray
are extensible. That is, you can
add more elements to such an array. References to an array change whenever
an element is added to or removed from the array.
Most member functions in this class contain assert
statements. For an explanation of the macro NDEBUG
(a way to
turn on or turn off these assert
statements), see the concept
Assert and NDEBUG.
See Also:
Constructor Summary | |
---|---|
public | IloExprArray(IloDefaultArrayI * i=0) |
public | IloExprArray(const IloEnv env, IloInt n=0) |
Method Summary | |
---|---|
public IloNumExprArg | operator()(IloNumExprArg anIntegerVariable) const |
Inherited Methods from IloNumExprArray |
---|
add, add, add, endElements, operator(), operator[] |
Inherited Methods from IloExtractableArray |
---|
add, add, add, endElements |
Constructor Detail |
---|
This constructor creates an empty array of expressions for use in a
model. You cannot create instances of the undocumented class
IloDefaultArrayI
. As a parameter in this default constructor,
it allows you to pass 0 (zero) as a value to an optional parameter in
functions and member functions that accept an array as a parameter.
This constructor creates an array of n
elements. Initially,
the n
elements are empty handles.
Method Detail |
---|
This subscripting operator is deprecated.
It must be replaced by the operator
IloNumExprArg operator[] (IloIntExprArg anIntegerVariable) const;