Overview | Group | Tree | Graph | Index | Concepts |
An array of constrained set variables of pointers is an instance
of the class IlcAnySetVarArray
. The elements of such an array
are instances of IlcAnySetVar
.
Empty Handle or Null Array
It is possible to create a null array, or in other words, an empty handle. When you do so, only these operations are allowed on that null array:
getSize
for the null array returns 0 (zero).
ok
returns
IlcFalse
for a null array.Attempts to access a null array in any other way will throw an exception
(an instance of IloSolver::SolverErrorException
).
See Also:
IlcAnySetVar, IlcAnySetVarArrayIterator, operator<<
Constructor Summary | |
---|---|
public | IlcAnySetVarArray() |
public | IlcAnySetVarArray(IlcIntSetVarArrayI * impl) |
public | IlcAnySetVarArray(IloSolver solver, IlcInt size) |
public | IlcAnySetVarArray(IloSolver s, IlcInt size, IlcAnyArray array) |
public | IlcAnySetVarArray(IloSolver solver, IlcInt size ILCPARAM, const IlcAnySetVar v1, const IlcAnySetVar v2) |
Method Summary | |
---|---|
public IlcAnySetVarArray | getCopy(IloSolver solver) const |
public IlcIntSetVarArrayI * | getImpl() const |
public const char * | getName() const |
public IloSolver | getSolver() const |
public IloSolverI * | getSolverI() const |
public void | operator=(const IlcAnySetVarArray & h) |
public IlcAnySetVar & | operator[](IlcInt index) const |
public void | setName(const char * name) const |
Constructor Detail |
---|
This constructor creates an array of size
uninitialized constrained set variables. The index range of the array is [0 size)
, where 0 is included but size
is excluded. The argument size
must be strictly greater than 0 (zero). Each element of the array must be assigned a value before the array can be used.
This constructor creates an array of size
constrained set variables. The index range of the array is [0 size)
, where 0 is included but size
is excluded. The argument size
must be strictly greater than 0 (zero). Each constrained variable has no required elements; its possible elements are the pointers in array
, an array of pointers.
This constructor creates an array of size
elements. The argument size
must be strictly greater than 0 (zero). The elements must be successive. If size
is
different from the number of instances of IlcAnySetVar
passed to the constructor,
then the behavior of this constructor is undefined and unlikely to be what you want.
Method Detail |
---|
This member function returns a copy of the invoking array of constrained set variables and
associates that copy with the solver indicated by solver
.
This member function returns an instance of IloSolver
associated with the invoking object.
This member function returns a pointer to the implementation object of the solver where the invoking object was extracted.
This operator returns a reference to the element at rank i
. This operator
can be used for accessing (that is, simply reading) the element or for modifying (that is,
writing) it.