The type of kind struct. More...
Public Types | |
enum | Predefined_id { SID_USER = -1, SID_MATERIAL_EMISSION = 0, SID_MATERIAL_SURFACE = 1, SID_MATERIAL_VOLUME = 2, SID_MATERIAL_GEOMETRY = 3, SID_MATERIAL = 4 } |
IDs to distinguish predefined struct types. More... | |
![]() | |
typedef Interface_declare< id1, id2, id3, id4, id5, id6, id7, id8, id9, id10, id11, neuraylib::IType_compound > | 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... | |
Public Member Functions | |
virtual const char * | get_symbol () const =0 |
Returns the qualified name of the struct type. More... | |
virtual const IType * | get_field_type (Size index) const =0 |
Returns a field type. More... | |
virtual const char * | get_field_name (Size index) const =0 |
Returns a field name. More... | |
virtual Size | find_field (const char *name) const =0 |
Returns the index of a field in linear time. More... | |
virtual Predefined_id | get_predefined_id () const =0 |
If this struct is a predefined one, return its ID, else SID_USER. More... | |
virtual const IAnnotation_block * | get_annotations () const =0 |
Returns the annotations of the struct type. More... | |
virtual const IAnnotation_block * | get_field_annotations (Size index) const =0 |
Returns the annotations of a field. More... | |
Static Public Attributes | |
static const Kind | s_kind = TK_STRUCT |
The kind of this subclass. More... | |
Additional Inherited Members | |
![]() | |
static bool | compare_iid (const Uuid &iid) |
Compares the interface ID iid against the interface ID of this interface and of its ancestors. More... | |
The type of kind struct.
IDs to distinguish predefined struct types.
|
pure virtual |
Returns the index of a field in linear time.
name | The unqualified name of the field. |
|
pure virtual |
Returns the annotations of the struct type.
NULL
if there are no annotations for the struct type.
|
pure virtual |
Returns the annotations of a field.
index | The index of the field. |
NULL
if index
is out of bounds, or there are no annotations for that field.
|
pure virtual |
Returns a field name.
index | The index of the field. |
Returns a field type.
index | The index of the field. |
|
pure virtual |
If this struct is a predefined one, return its ID, else SID_USER.
|
pure virtual |
Returns the qualified name of the struct type.