NO FRAMES

Class IloIntExprArray

Definition file: ilconcert/iloexpression.h
The array class of IloIntExpr.

For each basic type, Concert Technology defines a corresponding array class. IloNumExprArray is the array class of the integer expressions class (IloNumExpr) for a model.

Instances of IloIntExprArray 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.

Constructor Summary
public IloIntExprArray(IloDefaultArrayI *)
public IloIntExprArray(const IloEnv, IloInt)
Method Summary
public voidadd(IloInt, const IloIntExpr)
public voidadd(const IloIntExpr)
public voidadd(const IloIntExprArray)
public IloIntExprArgoperator()(IloIntExprArg)
public IloIntExproperator[](IloInt)
public IloIntExpr &operator[](IloInt)
Inherited Methods from IloExtractableArray
add, add, add, endElements
Constructor Detail

IloIntExprArray

public IloIntExprArray(IloDefaultArrayI * i)

This constructor creates an empty array of elements. 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.


IloIntExprArray

public IloIntExprArray(const IloEnv env, IloInt n)

This copy constructor creates a handle to the array of extractable objects indicated by copy.


Method Detail

add

public void add(IloInt more, const IloIntExpr x)

This member function appends x to the invoking array multiple times. The parameter more indicates how many times.


add

public void add(const IloIntExpr x)

This member function appends x to the invoking array.


add

public void add(const IloIntExprArray array)

This member function appends the elements in array to the invoking array.


operator()

public IloIntExprArg operator()(IloIntExprArg anIntegerVariable)

This subscripting operator returns an expression argument for use in a constraint or expression. For clarity, let's call A the invoking array. When anIntegerVariable is bound to the value i, the domain of the expression is the domain of A[i]. More generally, the domain of the expression is the union of the domains of the expressions A[i] where the i are in the domain of anIntegerVariable.


operator[]

public IloIntExpr operator[](IloInt i)

This operator returns a reference to the extractable object located in the invoking array at the position indicated by the index i. Concert Technology uses the const operator

IloIntExpr operator[] (IloInt i) const;

on const arrays.


operator[]

public IloIntExpr & operator[](IloInt i)

This operator returns a reference to the extractable object located in the invoking array at the position indicated by the index i.