An annotation block is an array of annotations.
More...
#include <iexpression.h>
|
typedef Interface_declare< id1, ... > | Self |
| Own type. More...
|
|
typedef Uuid_t< id1, ... > | IID |
| Declares the interface ID (IID) of this interface. More...
|
|
typedef Uuid_t<0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0> | 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...
|
|
static bool | compare_iid (const Uuid &iid) |
| Compares the interface ID iid against the interface ID of this interface. More...
|
|
An annotation block is an array of annotations.
Annotation blocks can be created with mi::neuraylib::IExpression_factory::create_annotation_block().
◆ add_annotation()
virtual Sint32 mi::neuraylib::IAnnotation_block::add_annotation |
( |
IAnnotation * |
annotation | ) |
|
|
pure virtual |
Adds an annotation at the end of the annotation block.
- Returns
- - 0: Success.
- -1: Invalid parameter (
NULL
pointer).
◆ get_annotation()
virtual const IAnnotation * mi::neuraylib::IAnnotation_block::get_annotation |
( |
Size |
index | ) |
const |
|
pure virtual |
Returns the annotation for index
, or NULL
if index is out of bounds.
◆ get_size()
virtual Size mi::neuraylib::IAnnotation_block::get_size |
( |
| ) |
const |
|
pure virtual |
Returns the number of annotations in this block.
◆ set_annotation()
virtual Sint32 mi::neuraylib::IAnnotation_block::set_annotation |
( |
Size |
index, |
|
|
const IAnnotation * |
annotation |
|
) |
| |
|
pure virtual |
Sets an annotation block at a given index.
- Returns
- - 0: Success.
- -1: Invalid parameter (
NULL
pointer).
- -2:
index
is out of bounds.