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

An instance of IlcIntSetArray represents an array of sets,
instances of IlcIntSet.
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 | IlcIntSetArray() |
public | IlcIntSetArray(IlcIntSetArrayI * impl) |
public | IlcIntSetArray(IloSolver solver, IlcInt size, IlcIntSet * values) |
public | IlcIntSetArray(IloSolver solver, IlcInt size, IlcIntArray array) |
public | IlcIntSetArray(IloSolver solver, IlcInt size, const IlcIntSet 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 IlcIntSetArray & h) |
public IlcIntSet & | 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 IlcIntSet. The number of arguments of type
IlcIntSet 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 (that is, simply reading) the element or for modifying (that is, writing) it.