Self Restriction
-
struct CowlObjHasSelf : public CowlClsExp
Represents ObjectHasSelf in the OWL 2 specification.
Public Static Functions
-
static inline CowlObjHasSelf *cowl_obj_has_self(CowlAnyObjPropExp *prop)
Returns a retained self-restriction.
- Parameters
prop – The property expression.
- Returns
Retained restriction, or NULL on error.
-
static inline CowlObjHasSelf *cowl_obj_has_self_retain(CowlObjHasSelf *exp)
Retains the specified self-restriction.
- Parameters
exp – The restriction.
- Returns
Retained restriction.
-
static inline void cowl_obj_has_self_release(CowlObjHasSelf *exp)
Releases the specified self-restriction.
- Parameters
exp – The restriction.
-
static inline CowlObjPropExp *cowl_obj_has_self_get_prop(CowlObjHasSelf *exp)
Gets the object property expression of the specified self-restriction.
- Parameters
exp – The restriction.
- Returns
The object property expression.
-
static inline CowlString *cowl_obj_has_self_to_string(CowlObjHasSelf *exp)
Returns the string representation of the specified self-restriction.
Note
The returned string is retained, so you are responsible for releasing it.
- Parameters
exp – The restriction.
- Returns
String representation, or NULL on error.
-
static inline bool cowl_obj_has_self_equals(CowlObjHasSelf *lhs, CowlObjHasSelf *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_obj_has_self_hash(CowlObjHasSelf *exp)
Hash function.
- Parameters
exp – The restriction.
- Returns
The hash value.
-
static inline bool cowl_obj_has_self_iterate_primitives(CowlObjHasSelf *exp, CowlPrimitiveFlags flags, CowlIterator *iter)
Iterates over the primitives referenced by the specified self-restriction.
- Parameters
exp – The restriction.
flags – Iteration flags.
iter – The iterator.
- Returns
True if the iteration was completed, false if it was stopped.
-
static inline CowlObjHasSelf *cowl_obj_has_self(CowlAnyObjPropExp *prop)