A compound value. More...
Public Member Functions | |
virtual const IType_compound * | get_type () const =0 |
Returns the type of this value. More... | |
virtual Size | get_size () const =0 |
Returns the number of components in this compound value. More... | |
virtual const IValue * | get_value (Size index) const =0 |
Returns the value at index , or NULL if index is out of bounds. More... | |
template<class T > | |
const T * | get_value (Size index) const |
Returns the value at index , or NULL if index is out of bounds. More... | |
virtual IValue * | get_value (Size index)=0 |
Returns the value at index , or NULL if index is out of bounds. More... | |
template<class T > | |
T * | get_value (Size index) |
Returns the value at index , or NULL if index is out of bounds. More... | |
virtual Sint32 | set_value (Size index, IValue *value)=0 |
Sets the value at index . More... | |
Additional Inherited Members | |
![]() | |
typedef Interface_declare< id1, id2, id3, id4, id5, id6, id7, id8, id9, id10, id11, neuraylib::IValue > | Self |
Own type. More... | |
typedef Uuid_t< id1, id2, id3, id4, id5, id6, id7, id8, id9, id10, id11 > | IID |
Declares the interface ID (IID) of this interface. More... | |
![]() | |
static bool | compare_iid (const Uuid &iid) |
Compares the interface ID iid against the interface ID of this interface and of its ancestors. More... | |
A compound value.
|
pure virtual |
Returns the number of components in this compound value.
|
pure virtual |
Returns the type of this value.
Implements mi::neuraylib::IValue.
Implemented in mi::neuraylib::IValue_struct, mi::neuraylib::IValue_array, mi::neuraylib::IValue_color, mi::neuraylib::IValue_matrix, and mi::neuraylib::IValue_vector.
Returns the value at index
, or NULL
if index
is out of bounds.
Implemented in mi::neuraylib::IValue_color, mi::neuraylib::IValue_matrix, mi::neuraylib::IValue_vector, and mi::neuraylib::IValue_vector.
|
inline |
Returns the value at index
, or NULL
if index
is out of bounds.
Returns the value at index
, or NULL
if index
is out of bounds.
Implemented in mi::neuraylib::IValue_color, mi::neuraylib::IValue_matrix, mi::neuraylib::IValue_vector, and mi::neuraylib::IValue_vector.
|
inline |
Returns the value at index
, or NULL
if index
is out of bounds.
|
pure virtual |
Sets the value at index
.
index | The index of the field. |
value | The new value of the field. |
NULL
pointer).index
is out of bounds.value
.