A type of kind enum.
More...
|
enum | Predefined_id {
EID_USER = -1,
EID_TEX_GAMMA_MODE = 0,
EID_INTENSITY_MODE = 1
} |
| IDs to distinguish predefined enum types. More...
|
|
typedef Interface_declare< id1,
id2, id3, id4, id5, id6, id7,
id8, id9, id10, id11,
neuraylib::IType_atomic > | 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...
|
|
IDs to distinguish predefined enum types.
Enumerator |
---|
EID_USER |
A user-defined enum type.
|
EID_TEX_GAMMA_MODE |
The "::tex::gamma_mode" enum type.
|
EID_INTENSITY_MODE |
The "::intensity_mode" enum type.
|
virtual Size mi::neuraylib::IType_enum::find_value |
( |
const char * |
name) | |
const |
|
pure virtual |
Returns the index of a value in linear time.
- Parameters
-
name | The unqualified name of the value. |
- Returns
- The index of the value, or -1 if there is no such value.
virtual Size mi::neuraylib::IType_enum::find_value |
( |
Sint32 |
code) | |
const |
|
pure virtual |
Returns the index of a value in linear time.
- Parameters
-
code | The code of the value. |
- Returns
- The index of the value, or -1 if there is no such value.
virtual const IAnnotation_block* mi::neuraylib::IType_enum::get_annotations |
( |
) | |
const |
|
pure virtual |
Returns the annotations of the enum type.
- Returns
- The annotations of the enum type, or
NULL
if there are no annotations for the enum type.
virtual Predefined_id mi::neuraylib::IType_enum::get_predefined_id |
( |
) | |
const |
|
pure virtual |
If this enum is a predefined one, return its ID, else EID_USER.
virtual Size mi::neuraylib::IType_enum::get_size |
( |
) | |
const |
|
pure virtual |
Returns the number of values.
virtual const char* mi::neuraylib::IType_enum::get_symbol |
( |
) | |
const |
|
pure virtual |
Returns the qualified name of this enum type.
Returns the annotations of a value.
- Parameters
-
index | The index of the value. |
- Returns
- The annotation of that value, or
NULL
if index
is out of bounds, or there are no annotations for that value.
virtual Sint32 mi::neuraylib::IType_enum::get_value_code |
( |
Size |
index, |
|
|
Sint32 * |
errors = 0 |
|
) |
| const |
|
pure virtual |
Returns the code of a value.
- Parameters
-
| index | The index of the value. |
[out] | errors |
- 0: Success.
- -1:
index is invalid.
|
- Returns
- The code of the value, or 0 in case of errors.
virtual const char* mi::neuraylib::IType_enum::get_value_name |
( |
Size |
index) | |
const |
|
pure virtual |
Returns the name of a value.
- Parameters
-
index | The index of the value. |
- Returns
- The unqualified name of the value, or
NULL
if index
is invalid.
The kind of this subclass.