Overview | Group | Tree | Graph | Index | Concepts |
This macro defines an texture criticality calculator, a subclass of
IloTextureCriticalityCalculatorI
named
nameI
. The argument solver
is the name of the
IloSolver
that performs the extraction. Within the macro, this
name denotes the solver currently performing the extraction. When
n
is greater than 0 (zero), the types and names of the data
members must be supplied as arguments to the macro. Each data member is
defined by its type ti
and a name ai
. The call
to the macro must be followed immediately by the body of the
extract
member function of the criticality calculator class
being defined. It must return a pointer to an instance of IlcTextureCriticalityCalculatorI
that corresponds to the
extracted object. Besides the definition of the class nameI
,
this macro also defines a function named name
that creates an
instance of the class nameI
and returns an instance of the
class IloTextureCriticalityCalculatorI*
that
points to it.
The use of this macro is the only way to define a new subclass of
IloTextureCriticalityCalculatorI
.
Since the argument name
is used to name the texture
criticality calculator class, it is not possible to use the same name for
other classes.
See the ILORCTEXTUREFACTORY0
macro for an
analogous example of how this macro can be used.
For more information, see Texture Measurements.
See Also:
IloTextureCriticalityCalculatorI, IloTextureCriticalityCalculator, IlcTextureCriticalityCalculatorI, IlcTextureCriticalityCalculator