libSBML C API
5.18.0
|
The Member_t class has four optional attributes: id and name, which identify the element, and idRef and metaIdRef which reference the identifiers of other elements. There must be exactly one (and only one) method used to reference another element: either idRef or metaIdRef may be defined, but not both. (Multiple attributes are needed to account for the different types of identifiers that a given object may have.) The referenced object (including, potentially, another Group_t object) is thus made a member of the group in which the Member_t object is contained.
Since Member_t is derived from SBase_t and, as mentioned above, SBase_t provides both the ability to attach SBO_t terms as well as MIRIAM annotations, the semantics of a given member in a model can be made more precise by reference to external controlled vocabularies and ontologies.
Public Member Functions | |
Member_t * | Member_clone (const Member_t *m) |
Creates and returns a deep copy of this Member_t object. More... | |
Member_t * | Member_create (unsigned int level, unsigned int version, unsigned int pkgVersion) |
Creates a new Member_t using the given SBML Level, Version and “groups” package version. More... | |
void | Member_free (Member_t *m) |
Frees this Member_t object. More... | |
char * | Member_getId (const Member_t *m) |
Returns the value of the "id" attribute of this Member_t. More... | |
char * | Member_getIdRef (const Member_t *m) |
Returns the value of the "idRef" attribute of this Member_t. More... | |
char * | Member_getMetaIdRef (const Member_t *m) |
Returns the value of the "metaIdRef" attribute of this Member_t. More... | |
char * | Member_getName (const Member_t *m) |
Returns the value of the "name" attribute of this Member_t. More... | |
int | Member_hasRequiredAttributes (const Member_t *m) |
Predicate returning 1 (true) if all the required attributes for this Member_t object have been set. More... | |
int | Member_isSetId (const Member_t *m) |
Predicate returning 1 (true) if this Member_t's "id" attribute is set. More... | |
int | Member_isSetIdRef (const Member_t *m) |
Predicate returning 1 (true) if this Member_t's "idRef" attribute is set. More... | |
int | Member_isSetMetaIdRef (const Member_t *m) |
Predicate returning 1 (true) if this Member_t's "metaIdRef" attribute is set. More... | |
int | Member_isSetName (const Member_t *m) |
Predicate returning 1 (true) if this Member_t's "name" attribute is set. More... | |
int | Member_setId (Member_t *m, const char *id) |
Sets the value of the "id" attribute of this Member_t. More... | |
int | Member_setIdRef (Member_t *m, const char *idRef) |
Sets the value of the "idRef" attribute of this Member_t. More... | |
int | Member_setMetaIdRef (Member_t *m, const char *metaIdRef) |
Sets the value of the "metaIdRef" attribute of this Member_t. More... | |
int | Member_setName (Member_t *m, const char *name) |
Sets the value of the "name" attribute of this Member_t. More... | |
int | Member_unsetId (Member_t *m) |
Unsets the value of the "id" attribute of this Member_t. More... | |
int | Member_unsetIdRef (Member_t *m) |
Unsets the value of the "idRef" attribute of this Member_t. More... | |
int | Member_unsetMetaIdRef (Member_t *m) |
Unsets the value of the "metaIdRef" attribute of this Member_t. More... | |
int | Member_unsetName (Member_t *m) |
Unsets the value of the "name" attribute of this Member_t. More... | |
Creates and returns a deep copy of this Member_t object.
m | the Member_t structure. |
Member_t * Member_create | ( | unsigned int | level, |
unsigned int | version, | ||
unsigned int | pkgVersion | ||
) |
Creates a new Member_t using the given SBML Level, Version and “groups” package version.
level | an unsigned int, the SBML Level to assign to this Member_t. |
version | an unsigned int, the SBML Version to assign to this Member_t. |
pkgVersion | an unsigned int, the SBML Groups Version to assign to this Member_t. |
char * Member_getId | ( | const Member_t * | m | ) |
Returns the value of the "id" attribute of this Member_t.
m | the Member_t structure whose id is sought. |
char * Member_getIdRef | ( | const Member_t * | m | ) |
Returns the value of the "idRef" attribute of this Member_t.
m | the Member_t structure whose idRef is sought. |
char * Member_getMetaIdRef | ( | const Member_t * | m | ) |
Returns the value of the "metaIdRef" attribute of this Member_t.
m | the Member_t structure whose metaIdRef is sought. |
char * Member_getName | ( | const Member_t * | m | ) |
Returns the value of the "name" attribute of this Member_t.
m | the Member_t structure whose name is sought. |
int Member_hasRequiredAttributes | ( | const Member_t * | m | ) |
int Member_isSetId | ( | const Member_t * | m | ) |
int Member_isSetIdRef | ( | const Member_t * | m | ) |
int Member_isSetMetaIdRef | ( | const Member_t * | m | ) |
int Member_isSetName | ( | const Member_t * | m | ) |
int Member_setId | ( | Member_t * | m, |
const char * | id | ||
) |
Sets the value of the "id" attribute of this Member_t.
m | the Member_t structure. |
id | const char * value of the "id" attribute to be set. |
id
= NULL
or an empty string is equivalent to calling Member_unsetId(). int Member_setIdRef | ( | Member_t * | m, |
const char * | idRef | ||
) |
Sets the value of the "idRef" attribute of this Member_t.
m | the Member_t structure. |
idRef | const char * value of the "idRef" attribute to be set. |
int Member_setMetaIdRef | ( | Member_t * | m, |
const char * | metaIdRef | ||
) |
Sets the value of the "metaIdRef" attribute of this Member_t.
m | the Member_t structure. |
metaIdRef | const char * value of the "metaIdRef" attribute to be set. |
int Member_setName | ( | Member_t * | m, |
const char * | name | ||
) |
Sets the value of the "name" attribute of this Member_t.
m | the Member_t structure. |
name | const char * value of the "name" attribute to be set. |
name
= NULL
or an empty string is equivalent to calling Member_unsetName(). int Member_unsetId | ( | Member_t * | m | ) |
Unsets the value of the "id" attribute of this Member_t.
m | the Member_t structure. |
int Member_unsetIdRef | ( | Member_t * | m | ) |
Unsets the value of the "idRef" attribute of this Member_t.
m | the Member_t structure. |
int Member_unsetMetaIdRef | ( | Member_t * | m | ) |
Unsets the value of the "metaIdRef" attribute of this Member_t.
m | the Member_t structure. |
int Member_unsetName | ( | Member_t * | m | ) |
Unsets the value of the "name" attribute of this Member_t.
m | the Member_t structure. |