Overview | Group | Tree | Graph | Index | Concepts |
IloAny
.
For each basic type, Concert Technology defines a corresponding array class.
IloAnyArray
is the array class of the basic enumerated type definition
(IloAny
) for a model.
Instances of IloAnyArray
are extensible. That is, you can add more
elements to such an array. References to an array change whenever an element is added
to or removed from the array.
If you would like to represent a set of enumerated values (that is, no repeated
elements, no order among elements), consider an instance of
IloAnySet
.
Most member functions in this class contain assert
statements. For an
explanation of the macro NDEBUG
(a way to turn on or turn off these
assert
statements), see the concept
Assert and NDEBUG.
See Also:
IloAny, IloAnySet, operator>>, operator<<
Constructor Summary | |
---|---|
public | IloAnyArray(IloDefaultArrayI *) |
public | IloAnyArray(const IloAnyArray &) |
public | IloAnyArray(const IloEnv, IloInt) |
public | IloAnyArray(const IloEnv, IloInt, const IloAny, const IloAny, ...) |
Method Summary | |
---|---|
public void | add(const IloAny) |
Constructor Detail |
---|
This constructor creates an empty array of elements. You cannot create instances of
the undocumented class IloDefaultArrayI
. As a parameter in this default
constructor, it allows you to pass 0 (zero) as a value to an optional parameter in
functions and member functions that accept an array as a parameter.
This copy constructor creates a handle to the array of pointers indicated by
copy
.
This constructor creates an array of n
elements, all of which are
empty handles.
This constructor creates an array of n
elements for use in a model.
Method Detail |
---|
This member function appends p
to the invoking array.