Overview | Group | Tree | Graph | Index | Concepts |
An instance of this class is an array of extractable objects (instances of the class
IloExtractable
or its subclasses).
Instances of IloExtractableArray
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.
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.
For information on arrays, see the concept Arrays
See Also:
Constructor Summary | |
---|---|
public | IloExtractableArray(IloDefaultArrayI *) |
public | IloExtractableArray(const IloExtractableArray &) |
public | IloExtractableArray(const IloEnv, IloInt) |
public | IloExtractableArray(const IloEnv, IloInt, const IloExtractable, const IloExtractable v1...) |
Method Summary | |
---|---|
public void | add(IloInt, const IloExtractable) |
public void | add(const IloExtractable) |
public void | add(const IloExtractableArray) |
public void | endElements() |
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 extractable objects indicated
by copy
.
This constructor creates an array of n
elements, each of which is an
empty handle.
This constructor creates an array of n
extractable objects for use in
a model.
Method Detail |
---|
This member function appends extr
to the invoking array multiple times.
The parameter more
indicates how many times.
This member function appends extr
to the invoking array.
This member function appends the elements in array
to the invoking
array.
This member function calls IloExtractable::end
for
each of the elements in the invoking array and then calls
IloExtractableArray::clear
for the array itself. This member function is
the recommended way to delete the elements of an array.