Skip to main content
FRAMES NO FRAMES

Class IlcCumulElementVarArray

Definition file: ilcp/cpext.h
Include file: <ilcp/cpext.h>
Map of IlcCumulElementVarArrayIlcCumulElementVarArrayIlcCumulElementVarArray
The array class for the class IlcCumulElementVar.

The class IlcCumulElementVarArray is the class for an array of instances of IlcCumulElementVar. Instances of this class are arrays indexed from 0.

See Also:

Method Summary
public IlcCumulElementVarArraygetCopy() const
public IlcCPEnginegetCPEngine() const
public IloIntgetSize() const
public IlcCumulElementVarArray(const IlcCPEngine cp, const IloInt size)
public IlcCumulElementVar &operator[](IlcInt index) const
Method Detail

IlcCumulElementVarArray

public IlcCumulElementVarArray(const IlcCPEngine cp, const IloInt size)

This constructor creates an array of length size initialized to empty handles. The argument size must be greater than 0 (zero). The index range of the array is [0 size). Each element of the array should be assigned before using the array.


getCopy

public IlcCumulElementVarArray getCopy() const

This member function returns a copy of the invoking array of constrained cumul element variables.


getCPEngine

public IlcCPEngine getCPEngine() const

This member function returns the instance of IlcCPEngine associated with the invoking array.


getSize

public IloInt getSize() const

This member function returns the number of constrained cumul element variables in the invoking array.


operator[]

public IlcCumulElementVar & operator[](IlcInt index) const

This subscripting operator returns a reference to a constrained cumul element variable corresponding to the given index in the invoking array of constrained cumul element variables.

The assignment of a cumul element to an index position of the invoking array is not reversible.