Overview | Group | Tree | Graph | Index | Concepts |
IloFloatArray
IloFloatArray
is the array class of the basic floating-point
class for a model. It is a handle class. The implementation class for
IloFloatArray
is the undocumented class
IloFloatArrayI
.
Instances of IloFloatArray
are extensible. (They differ from
instances of IlcFloatArray
in this
respect. IlcFloatArray
is documented in the ILOG Solver
Reference Manual.)
For each basic type, Concert Technology defines a corresponding array class. That array class is a handle class. In other words, an object of that class contains a pointer to another object allocated on the Concert Technology heap associated with a model. 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.
As handles, these objects should be passed by value, and they should be created as automatic objects, where “automatic” has the usual C++ meaning.
Member functions of a handle class correspond to member functions of the same name in the implementation class.
Assert and NDEBUG
Most member functions of the class IloFloatArray
are inline
functions that contain an assert
statement. This statement
checks that the handle pointer is non-null. These statements can be
suppressed by the macro NDEBUG
. This option usually reduces
execution time. The price you pay for this choice is that attempts to access
through null pointers are not trapped and usually result in memory
faults.
See Also: