Annotations
-
struct CowlAnnotation : public CowlObject
Represents an Annotation in the OWL 2 specification.
Public Static Functions
-
static inline CowlAnnotation *cowl_annotation(CowlAnnotProp *prop, CowlAnyAnnotValue *value, CowlVector *annot)
Returns a retained annotation.
- Parameters
prop – The annotation property.
value – The annotation value.
annot – [optional] The annotations.
- Returns
Retained annotation, or NULL on error.
-
static inline CowlAnnotation *cowl_annotation_retain(CowlAnnotation *annot)
Retains the specified annotation.
- Parameters
annot – The annotation.
- Returns
Retained annotation.
-
static inline void cowl_annotation_release(CowlAnnotation *annot)
Releases the specified annotation.
- Parameters
annot – The annotation.
-
static inline CowlAnnotProp *cowl_annotation_get_prop(CowlAnnotation *annot)
Gets the annotation property.
- Parameters
annot – The annotation.
- Returns
The annotation property.
-
static inline CowlAnnotValue *cowl_annotation_get_value(CowlAnnotation *annot)
Gets the annotation value.
- Parameters
annot – The annotation.
- Returns
The annotation value.
-
static inline CowlVector *cowl_annotation_get_annot(CowlAnnotation *annot)
Gets the annotations of the specified annotation.
- Parameters
annot – The annotation.
- Returns
The annotations.
-
static inline CowlString *cowl_annotation_to_string(CowlAnnotation *annot)
Returns the string representation of the specified annotation.
Note
The returned string is retained, so you are responsible for releasing it.
- Parameters
annot – The annotation.
- Returns
String representation, or NULL on error.
-
static inline bool cowl_annotation_equals(CowlAnnotation *lhs, CowlAnnotation *rhs)
Equality function.
- Parameters
lhs – LHS of the equality relation.
rhs – RHS of the equality relation.
- Returns
True if the equality relation holds, false otherwise.
-
static inline ulib_uint cowl_annotation_hash(CowlAnnotation *annot)
Hash function.
- Parameters
annot – The annotation.
- Returns
The hash value.
-
static inline bool cowl_annotation_iterate_primitives(CowlAnnotation *annot, CowlPrimitiveFlags flags, CowlIterator *iter)
Iterates over the primitives referenced by the specified annotation.
- Parameters
annot – The annotation.
flags – Iteration flags.
iter – The iterator.
- Returns
True if the iteration was completed, false if it was stopped.
-
static inline CowlAnnotation *cowl_annotation(CowlAnnotProp *prop, CowlAnyAnnotValue *value, CowlVector *annot)
Types