libSBML C API
5.18.0
|
int GroupsModelPlugin_addGroup | ( | GroupsModelPlugin_t * | gmp, |
const Group_t * | g | ||
) |
Adds a copy of the given Group_t to this GroupsModelPlugin_t.
gmp | the GroupsModelPlugin_t structure to which the Group_t should be added. |
g | the Group_t object to add. |
Group_t * GroupsModelPlugin_createGroup | ( | GroupsModelPlugin_t * | gmp | ) |
Creates a new Group_t object, adds it to this GroupsModelPlugin_t object and returns the Group_t object created.
gmp | the GroupsModelPlugin_t structure to which the Group_t should be added. |
Group_t * GroupsModelPlugin_getGroup | ( | GroupsModelPlugin_t * | gmp, |
unsigned int | n | ||
) |
Get a Group_t from the GroupsModelPlugin_t.
gmp | the GroupsModelPlugin_t structure to search. |
n | an unsigned int representing the index of the Group_t to retrieve. |
NULL
if no such object exists..Group_t * GroupsModelPlugin_getGroupById | ( | GroupsModelPlugin_t * | gmp, |
const char * | sid | ||
) |
Get a Group_t from the GroupsModelPlugin_t based on its identifier.
gmp | the GroupsModelPlugin_t structure to search. |
sid | a string representing the identifier of the Group_t to retrieve. |
sid
or NULL
if no such Group_t exists.ListOf_t * GroupsModelPlugin_getListOfGroups | ( | GroupsModelPlugin_t * | gmp | ) |
Returns a ListOf_t * containing Group_t objects from this GroupsModelPlugin_t.
gmp | the GroupsModelPlugin_t structure whose ListOfGroups_t is sought. |
unsigned int GroupsModelPlugin_getNumGroups | ( | GroupsModelPlugin_t * | gmp | ) |
Get the number of Group_t objects in this GroupsModelPlugin_t.
gmp | the GroupsModelPlugin_t structure to query. |
Group_t * GroupsModelPlugin_removeGroup | ( | GroupsModelPlugin_t * | gmp, |
unsigned int | n | ||
) |
Removes the nth Group_t from this GroupsModelPlugin_t and returns a pointer to it.
gmp | the GroupsModelPlugin_t structure to search. |
n | an unsigned int representing the index of the Group_t to remove. |
Group_t * GroupsModelPlugin_removeGroupById | ( | GroupsModelPlugin_t * | gmp, |
const char * | sid | ||
) |
Removes the Group_t from this GroupsModelPlugin_t based on its identifier and returns a pointer to it.
gmp | the GroupsModelPlugin_t structure to search. |
sid | a string representing the identifier of the Group_t to remove. |