Skip to main content
FRAMES NO FRAMES

Class IlcIntervalSequenceVarArray

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

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

See Also:

Method Summary
public IlcIntervalSequenceVarArraygetCopy() const
public IlcCPEnginegetCPEngine() const
public IloIntgetSize() const
public IlcIntervalSequenceVarArray(const IlcCPEngine cp, const IloInt size)
public IlcIntervalSequenceVar &operator[](IlcInt index) const
Method Detail

IlcIntervalSequenceVarArray

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

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


operator[]

public IlcIntervalSequenceVar & operator[](IlcInt index) const

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

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