Skip to main content
FRAMES NO FRAMES

Class IlcIntervalVarArray

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

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

See Also:

Method Summary
public IlcIntervalVarArraygetCopy() const
public IlcCPEnginegetCPEngine() const
public IloIntgetSize() const
public IlcIntervalVarArray(const IlcCPEngine cp, const IloInt size)
public IlcIntervalVar &operator[](IlcInt index) const
Method Detail

IlcIntervalVarArray

public IlcIntervalVarArray(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 IlcIntervalVarArray getCopy() const

This member function returns a copy of the invoking array of constrained interval 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 interval variables in the invoking array.


operator[]

public IlcIntervalVar & operator[](IlcInt index) const

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

The assignment of an interval to an index position of the invoking array is not reversible.