Overview | Group | Tree | Graph | Index | Concepts |
The class IloNHoodArray
is the class for an array of
instances of IloNHood
.
See Also:
IloNHood, IloConcatenate, IloArray
Constructor Summary | |
---|---|
public | IloNHoodArray() |
public | IloNHoodArray(IloNHoodArrayI * impl) |
public | IloNHoodArray(const IloNHoodArray & array) |
public | IloNHoodArray(IloEnv env, IloInt size) |
Method Summary | |
---|---|
public IloEnv | getEnv() const |
public IloNHoodArrayI * | getImpl() const |
public IloInt | getSize() const |
public void | operator=(const IloNHoodArray & array) |
public IloNHood | operator[](IloInt i) const |
public IloNHood & | operator[](IloInt i) |
Constructor Detail |
---|
This constructor creates an uninitialized array of neighborhoods. The index range of the array is undefined. The array must be assigned before it can be used.
This constructor creates a handle object (an instance of the class
IloNHoodArray
) from a pointer to an object (an instance of
the implementation class IloNHoodArrayI
).
This copy constructor creates a handle from a reference to a
neighborhood array. That neighborhood array and array
both point to the same implementation object.
This constructor creates an array of size
neighborhoods
associated with environment env
. The index range of the array
is [0..size)
, where 0 is included but size
is
excluded. The argument size
must be strictly greater than
0 (zero).
Method Detail |
---|
This member function returns the environment associated with the invoking array.
This member function returns the implementation object of the invoking handle. You can use this member function to check whether an array is empty.
This member function returns the number of neighborhoods in the invoking array.
This assignment operator copies array
into the invoking
array by assigning an address to the handle pointer of the invoking object.
That address is the location of the implementation object of the argument
array
.
This subscripting operator returns the neighborhood corresponding
to rank i
in the invoking neighborhood array.
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.