| Overview | Group | Tree | Graph | Index | Concepts |

An instance of IlcAnySetArray represents an array of sets,
instances of IlcAnySet. Its implementation class is the
undocumented class IlcIntSetArrayI.
For each basic type, Solver defines a corresponding array class. This array class is a handle class. In other words, an object of this class contains a pointer to another object allocated on the Solver heap. Exploiting handles in this way greatly simplifies the programming interface since the handle can then be an automatic object: as a developer using handles, you do not have to worry about memory allocation.
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:
| Constructor Summary | |
|---|---|
public | IlcAnySetArray() |
public | IlcAnySetArray(IlcIntSetArrayI * impl) |
public | IlcAnySetArray(IloSolver solver, IlcInt size, IlcAnySet * values) |
public | IlcAnySetArray(IloSolver solver, IlcInt size, IlcAnyArray array) |
public | IlcAnySetArray(IloSolver solver, IlcInt size, const IlcAnySet exp...) |
| Method Summary | |
|---|---|
public IlcIntSetArrayI * | getImpl() const |
public const char * | getName() const |
public IlcInt | getSize() const |
public IloSolver | getSolver() const |
public IloSolverI * | getSolverI() const |
public void | operator=(const IlcAnySetArray & h) |
public IlcAnySet & | operator[](IlcInt i) const |
public void | setName(const char * name) const |
| Constructor Detail |
|---|
This constructor creates an array of sets; the length of that array is size;
its elements are initialized with the values indicated by values.
This constructor creates an array of sets; the length of that array is size;
its elements are initialized with the values indicated by array.
This constructor creates an array of sets; the length of that array is size;
its elements are initialized with the arguments of type IlcAnySet. The number of
arguments of type IlcAnySet must be the same as size.
| Method Detail |
|---|
This member function returns the number of elements in the invoking array.
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 the element or for modifying it.