NO FRAMES

Class IloIntSetVarArray

Definition file: ilconcert/iloset.h
The array class of the set variable class for integer values.

For each basic type, Concert Technology defines a corresponding array class. IloIntSetVarArray is the array class of the set variable class for integer values (IloIntSetVar) in a model.

Instances of IloIntSetVarArray are extensible. That is, you can add more elements to such an array. References to an array change whenever an element is added or removed from the array.

Constructor Summary
public IloIntSetVarArray(IloDefaultArrayI *)
public IloIntSetVarArray(const IloEnv, IloInt)
public IloIntSetVarArray(const IloEnv, IloInt, const IloIntSetVar, const IloIntSetVar v1...)
Method Summary
public voidadd(IloInt, const IloIntSetVar)
public voidadd(const IloIntSetVar)
public voidadd(const IloIntSetVarArray)
public IloIntSetVaroperator[](IloInt)
public IloIntSetVar &operator[](IloInt)
Inherited Methods from IloExtractableArray
add, add, add, endElements
Constructor Detail

IloIntSetVarArray

public IloIntSetVarArray(IloDefaultArrayI * i)

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


IloIntSetVarArray

public IloIntSetVarArray(const IloEnv env, IloInt n)

This constructor creates an extensible array of n set variables, where each set is a set of integer values.


IloIntSetVarArray

public IloIntSetVarArray(const IloEnv env, IloInt n, const IloIntSetVar v0, const IloIntSetVar v1... )

This constructor creates an extensible array of n set variables, as indicated by v0, v1, etc.


Method Detail

add

public void add(IloInt more, const IloIntSetVar x)

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


add

public void add(const IloIntSetVar x)

This member function appends x to the invoking array.


add

public void add(const IloIntSetVarArray array)

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


operator[]

public IloIntSetVar operator[](IloInt i)

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

IloIntSetVar operator[] (IloInt i) const;

on const arrays.


operator[]

public IloIntSetVar & operator[](IloInt i)

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