Get a description of a subset relation¶
saf_describe_subset_relation is a function defined in rel.c.
Synopsis:
-
int
saf_describe_subset_relation(SAF_ParMode pmode, SAF_Rel *rel, SAF_Set *sup, SAF_Set *sub, SAF_Cat *sup_cat, SAF_Cat *sub_cat, SAF_BoundMode *sbmode, SAF_BoundMode *cbmode, SAF_RelRep *srtype, hid_t *data_type)¶
Formal Arguments:
pmode: The parallel mode.rel: The relation handle.sup: [OUT] The superset. PassNULLif you do not want this value returned.sub: [OUT] The subset. PassNULLif you do not want this value returned.sup_cat: [OUT] The collection category on thesupset upon which the subset relation is defined. Note that collections of this category must have already been defined onsup. Otherwise, an error is generated. Note that the four argssup_cat,sub_cat,sbmode, andcbmodeare typically passed using one of the macros described in the saf_declare_subset_relation call,SAF__COMMON,SAF__BOUNDARY,SAF__EMBEDBNDorSAF__GENERAL. PassNULLif you do not want this value returned.sub_cat: [OUT] The collection category on thesubset upon which the subset relation is defined. Again, passNULLif you do not want this value returned.sbmode: [OUT] Indicates whethersubis the boundary ofsup. A value ofSAF__BOUNDARY_TRUE, indicates that thesubis a boundary ofsup. A value ofSAF__BOUNDARY_FALSEindicatessubis not a boundary ofsup. PassNULLif you do not want this value returned.cbmode: [OUT] Indicates whether members of collection onsubare on the boundaries of members of the collection onsup. A value ofSAF__BOUNDARY_TRUEindicates they are. A value ofSAF__BOUNDARY_FALSEindicates they are not. PassNULLif you do not want this value returned.srtype: [OUT] The representation specification. PassNULLif you do not want this handle returned. See saf_declare_subset_relation for the meaning of values of this argument.data_type: [OUT] The data-type of the data stored with the relation. PassNULLif you do not want this value returned.
Description: Returns information about a subset relation.
Preconditions:
pmodemust be valid. (low-cost)- The
relargument must be a valid handle. (low-cost)
Return Value: The constant SAF__SUCCESS is returned when this function is successful. Otherwise this function either returns
an error number or throws an exception, depending on the value of the library’s error handling property.
See Also:
- saf_declare_subset_relation: 12.5: Declare a subset relation
- Subset Relations: Introduction for current chapter