An annotation definition. More...
#include <iexpression.h>
Public Member Functions | |
virtual const char * | get_module () const =0 |
Returns the DB name of the module containing this annotation definition. More... | |
virtual const char * | get_name () const =0 |
Returns the MDL name of the annotation definition. More... | |
virtual const char * | get_mdl_module_name () const =0 |
Returns the MDL name of the module containing this annotation definition. More... | |
virtual const char * | get_mdl_simple_name () const =0 |
Returns the simple MDL name of the annotation definition. More... | |
virtual const char * | get_mdl_parameter_type_name (Size index) const =0 |
Returns the type name of the parameter at index . More... | |
virtual Semantics | get_semantic () const =0 |
Returns the semantic of this annotation definition. More... | |
virtual bool | is_exported () const =0 |
Indicates whether the annotation definition is exported by its module. More... | |
virtual void | get_mdl_version (Mdl_version &since, Mdl_version &removed) const =0 |
Returns the MDL version when this annotation definition was added and removed. More... | |
virtual Size | get_parameter_count () const =0 |
Returns the parameter count of the annotation definition. More... | |
virtual const char * | get_parameter_name (Size index) const =0 |
Returns the parameter name of the given index. More... | |
virtual Size | get_parameter_index (const char *name) const =0 |
Returns the parameter index of the given name. More... | |
virtual const IType_list * | get_parameter_types () const =0 |
Returns the parameter types of the annotation definition. More... | |
virtual const IExpression_list * | get_defaults () const =0 |
Returns the parameter defaults of the annotation definition. More... | |
virtual const IAnnotation_block * | get_annotations () const =0 |
Returns the annotations of this definition or NULL if no annotations exist. More... | |
virtual const IAnnotation * | create_annotation (const IExpression_list *arguments) const =0 |
Creates an annotation. More... | |
Public Member Functions inherited from mi::base::IInterface | |
virtual Uint32 | retain () const =0 |
Increments the reference count. More... | |
virtual Uint32 | release () const =0 |
Decrements the reference count. More... | |
virtual const IInterface * | get_interface (const Uuid &interface_id) const =0 |
Acquires a const interface from another. More... | |
template<class T> | |
const T * | get_interface () const |
Acquires a const interface from another. More... | |
virtual IInterface * | get_interface (const Uuid &interface_id)=0 |
Acquires a mutable interface from another. More... | |
template<class T> | |
T * | get_interface () |
Acquires a mutable interface from another. More... | |
virtual Uuid | get_iid () const =0 |
Returns the interface ID of the most derived interface. More... | |
Additional Inherited Members | |
Static Public Member Functions inherited from mi::base::Interface_declare< 0xa453318b, ... > | |
static bool | compare_iid (const Uuid &iid) |
Compares the interface ID iid against the interface ID of this interface and of its ancestors. More... | |
Static Public Member Functions inherited from mi::base::IInterface | |
static bool | compare_iid (const Uuid &iid) |
Compares the interface ID iid against the interface ID of this interface. More... | |
An annotation definition.
All known semantics of annotation definitions.
|
pure virtual |
Creates an annotation.
arguments | The arguments for new annotation. |
NULL
if one of the arguments does not correspond to an actual parameter of the annotation or is not a constant expression.
|
pure virtual |
Returns the annotations of this definition or NULL
if no annotations exist.
|
pure virtual |
Returns the parameter defaults of the annotation definition.
|
pure virtual |
Returns the MDL name of the module containing this annotation definition.
|
pure virtual |
Returns the type name of the parameter at index
.
index | The index of the parameter. |
NULL
if index
is out of range.
|
pure virtual |
Returns the simple MDL name of the annotation definition.
The simple name is the last component of the MDL name, i.e., without any packages and scope qualifiers, and without the parameter type names.
|
pure virtual |
Returns the MDL version when this annotation definition was added and removed.
[out] | since | The MDL version in which this annotation definition was added. If the annotation definition does not belong to the standard library, the MDL version of the corresponding module is returned. |
[out] | removed | The MDL version in which this annotation definition was removed, or mi::neuraylib::MDL_VERSION_INVALID if the annotation has not been removed so far or does not belong to the standard library. |
|
pure virtual |
Returns the DB name of the module containing this annotation definition.
The type of the module is mi::neuraylib::IModule.
|
pure virtual |
Returns the MDL name of the annotation definition.
|
pure virtual |
Returns the parameter count of the annotation definition.
|
pure virtual |
Returns the parameter index of the given name.
name | The parameter name. |
-1
if there is no parameter of that name
.
|
pure virtual |
Returns the parameter name of the given index.
index | The parameter index. |
NULL
if index is out of range.
|
pure virtual |
Returns the parameter types of the annotation definition.
|
pure virtual |
Returns the semantic of this annotation definition.
|
pure virtual |
Indicates whether the annotation definition is exported by its module.