NO FRAMES

Class IloAnyArray

Definition file: ilconcert/iloany.h
The array class of the enumerated type definition 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:

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 voidadd(const IloAny)
Constructor Detail

IloAnyArray

public IloAnyArray(IloDefaultArrayI * i)

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.


IloAnyArray

public IloAnyArray(const IloAnyArray & copy)

This copy constructor creates a handle to the array of pointers indicated by copy.


IloAnyArray

public IloAnyArray(const IloEnv env, IloInt n)

This constructor creates an array of n elements, all of which are empty handles.


IloAnyArray

public IloAnyArray(const IloEnv env, IloInt n, const IloAny p0, const IloAny p1, ... )

This constructor creates an array of n elements for use in a model.


Method Detail

add

public void add(const IloAny p)

This member function appends p to the invoking array.