mi::neuraylib::IExpression_parameter Class Reference
[MDL type system]
Description
A parameter reference expression. Parameter reference expressions are used for defaults that reference earlier parameters. For example consider
float foo(float a, float b, float c = b) { ... }The default for the parameter c is of type mi::neuraylib::IExpression_parameter. Its index is 1, equal to the parameter index of parameter b.
Parameter reference expressions appear as defaults of material or function definitions. They are expanded during mi::neuraylib::IFunction_definition::create_function_call(), mi::neuraylib::IFunction_call::reset_argument(), and mi::neuraylib::Definition_wrapper::create_instance().
Public Member Functions
- virtual Size get_index() const =0
- Returns the index of the referenced parameter.
- virtual void set_index( Size index) =0
- Sets the index of the referenced parameter.
Static Public Variables
Member Functions
- virtual Size mi::neuraylib::IExpression_parameter::get_index() const [pure virtual]
-
Returns the index of the referenced parameter.
- virtual void mi::neuraylib::IExpression_parameter::set_index( Size index) [pure virtual]
-
Sets the index of the referenced parameter.
Variables
- const Kind mi::neuraylib::IExpression_parameter::s_kind = EK_PARAMETER [static]
-
The kind of this subclass.