Implementation of CompartmentType and ListOfCompartmentTypes.

Functions | |
| CompartmentType_t * | CompartmentType_clone (const CompartmentType_t *ct) |
| Creates a deep copy of the given CompartmentType_t structure. | |
| CompartmentType_t * | CompartmentType_create (unsigned int level, unsigned int version) |
Creates a new CompartmentType_t structure using the given SBML level and version values. | |
| CompartmentType_t * | CompartmentType_createWithNS (SBMLNamespaces_t *sbmlns) |
| Creates a new CompartmentType_t structure using the given SBMLNamespaces_t structure. | |
| void | CompartmentType_free (CompartmentType_t *ct) |
| Frees the given CompartmentType_t structure. | |
| const char * | CompartmentType_getId (const CompartmentType_t *ct) |
| Takes a CompartmentType_t structure and returns its identifier. | |
| const char * | CompartmentType_getName (const CompartmentType_t *ct) |
| Takes a CompartmentType_t structure and returns its name. | |
| const XMLNamespaces_t * | CompartmentType_getNamespaces (CompartmentType_t *ct) |
| Returns a list of XMLNamespaces_t associated with this CompartmentType_t structure. | |
| int | CompartmentType_isSetId (const CompartmentType_t *ct) |
Predicate returning true or false depending on whether the given CompartmentType_t structure's identifier is set. | |
| int | CompartmentType_isSetName (const CompartmentType_t *ct) |
Predicate returning true or false depending on whether the given CompartmentType_t structure's name is set. | |
| int | CompartmentType_setId (CompartmentType_t *ct, const char *sid) |
| Assigns the identifier of a CompartmentType_t structure. | |
| int | CompartmentType_setName (CompartmentType_t *ct, const char *name) |
| Assign the name of a CompartmentType_t structure. | |
| int | CompartmentType_unsetName (CompartmentType_t *ct) |
| Unsets the name of a CompartmentType. | |
| CompartmentType_t * | ListOfCompartmentTypes_getById (ListOf_t *lo, const char *sid) |
| CompartmentType_t * | ListOfCompartmentTypes_removeById (ListOf_t *lo, const char *sid) |
Removes item in this ListOf items with the given id or NULL if no such item exists. | |
| CompartmentType_t* CompartmentType_clone | ( | const CompartmentType_t * | ct | ) |
Creates a deep copy of the given CompartmentType_t structure.
| ct | the CompartmentType_t structure to be copied |
| CompartmentType_t* CompartmentType_create | ( | unsigned int | level, |
| unsigned int | version | ||
| ) |
Creates a new CompartmentType_t structure using the given SBML level and version values.
| level | an unsigned int, the SBML Level to assign to this CompartmentType |
| version | an unsigned int, the SBML Version to assign to this CompartmentType |
level and version for the document override those used to create the CompartmentType. Despite this, the ability to supply the values at creation time is an important aid to creating valid SBML. Knowledge of the intended SBML Level and Version determine whether it is valid to assign a particular value to an attribute, or whether it is valid to add an object to an existing SBMLDocument. | CompartmentType_t* CompartmentType_createWithNS | ( | SBMLNamespaces_t * | sbmlns | ) |
Creates a new CompartmentType_t structure using the given SBMLNamespaces_t structure.
| sbmlns | SBMLNamespaces, a pointer to an SBMLNamespaces structure to assign to this CompartmentType |
sbmlns namespaces for the document override those used to create the CompartmentType. Despite this, the ability to supply the values at creation time is an important aid to creating valid SBML. Knowledge of the intended SBML Level and Version determine whether it is valid to assign a particular value to an attribute, or whether it is valid to add an object to an existing SBMLDocument. | void CompartmentType_free | ( | CompartmentType_t * | ct | ) |
Frees the given CompartmentType_t structure.
| ct | the CompartmentType_t structure to be freed. |
| const char* CompartmentType_getId | ( | const CompartmentType_t * | ct | ) |
Takes a CompartmentType_t structure and returns its identifier.
| ct | the CompartmentType_t structure whose identifier is sought |
| const char* CompartmentType_getName | ( | const CompartmentType_t * | ct | ) |
Takes a CompartmentType_t structure and returns its name.
| ct | the CompartmentType_t whose name is sought. |
| const XMLNamespaces_t* CompartmentType_getNamespaces | ( | CompartmentType_t * | ct | ) |
Returns a list of XMLNamespaces_t associated with this CompartmentType_t structure.
| ct | the CompartmentType_t structure |
| int CompartmentType_isSetId | ( | const CompartmentType_t * | ct | ) |
Predicate returning true or false depending on whether the given CompartmentType_t structure's identifier is set.
| ct | the CompartmentType_t structure to query |
non-zero (true) if the "id" field of the given CompartmentType is set, zero (false) otherwise. | int CompartmentType_isSetName | ( | const CompartmentType_t * | ct | ) |
Predicate returning true or false depending on whether the given CompartmentType_t structure's name is set.
| ct | the CompartmentType_t structure to query |
non-zero (true) if the "name" field of the given CompartmentType is set, zero (false) otherwise. | int CompartmentType_setId | ( | CompartmentType_t * | ct, |
| const char * | sid | ||
| ) |
Assigns the identifier of a CompartmentType_t structure.
This makes a copy of the string passed as the argument sid.
| ct | the CompartmentType_t structure to set. |
| sid | the string to use as the identifier. |
| int CompartmentType_setName | ( | CompartmentType_t * | ct, |
| const char * | name | ||
| ) |
Assign the name of a CompartmentType_t structure.
This makes a copy of the string passed as the argument name.
| ct | the CompartmentType_t structure to set. |
| name | the string to use as the name. |
| int CompartmentType_unsetName | ( | CompartmentType_t * | ct | ) |
Unsets the name of a CompartmentType.
| ct | the CompartmentType_t structure whose name is to be unset. |
| CompartmentType_t* ListOfCompartmentTypes_getById | ( | ListOf_t * | lo, |
| const char * | sid | ||
| ) |
NULL if no such item exists. | CompartmentType_t* ListOfCompartmentTypes_removeById | ( | ListOf_t * | lo, |
| const char * | sid | ||
| ) |
Removes item in this ListOf items with the given id or NULL if no such item exists.
The caller owns the returned item and is responsible for deleting it.