libSBML C API
5.18.0
|
The MultiSpeciesReferencePlugin_t class inherits from the MultiSimpleSpeciesReferencePlugin_t class, and extends the SpeciesReference_t class to establish component mappings between the reactant species and the product species when the mappings cannot be inferred from the ids of the SpeciesTypeInstance_t objects. A MultiSpeciesReferencePlugin_t object defines an optional ListOfSpeciesTypeComponentMapInProducts_t child. Only a reaction product can contain the ListOfSpeciesTypeComponentMapInProducts_t child and it is not necessary to store the mappings again in the reactants.
int MultiSpeciesReferencePlugin_addSpeciesTypeComponentMapInProduct | ( | MultiSpeciesReferencePlugin_t * | msrp, |
const SpeciesTypeComponentMapInProduct_t * | stcmip | ||
) |
Adds a copy of the given SpeciesTypeComponentMapInProduct_t to this MultiSpeciesReferencePlugin_t.
msrp | the MultiSpeciesReferencePlugin_t structure to which the SpeciesTypeComponentMapInProduct_t should be added. |
stcmip | the SpeciesTypeComponentMapInProduct_t object to add. |
SpeciesTypeComponentMapInProduct_t * MultiSpeciesReferencePlugin_createSpeciesTypeComponentMapInProduct | ( | MultiSpeciesReferencePlugin_t * | msrp | ) |
Creates a new SpeciesTypeComponentMapInProduct_t object, adds it to this MultiSpeciesReferencePlugin_t object and returns the SpeciesTypeComponentMapInProduct_t object created.
msrp | the MultiSpeciesReferencePlugin_t structure to which the SpeciesTypeComponentMapInProduct_t should be added. |
ListOf_t * MultiSpeciesReferencePlugin_getListOfSpeciesTypeComponentMapInProducts | ( | MultiSpeciesReferencePlugin_t * | msrp | ) |
Returns a ListOf_t * containing SpeciesTypeComponentMapInProduct_t objects from this MultiSpeciesReferencePlugin_t.
msrp | the MultiSpeciesReferencePlugin_t structure whose ListOfSpeciesTypeComponentMapsInProduct is sought. |
unsigned int MultiSpeciesReferencePlugin_getNumSpeciesTypeComponentMapInProducts | ( | MultiSpeciesReferencePlugin_t * | msrp | ) |
Get the number of SpeciesTypeComponentMapInProduct_t objects in this MultiSpeciesReferencePlugin_t.
msrp | the MultiSpeciesReferencePlugin_t structure to query. |
SpeciesTypeComponentMapInProduct_t * MultiSpeciesReferencePlugin_getSpeciesTypeComponentMapInProduct | ( | MultiSpeciesReferencePlugin_t * | msrp, |
unsigned int | n | ||
) |
Get a SpeciesTypeComponentMapInProduct_t from the MultiSpeciesReferencePlugin_t.
msrp | the MultiSpeciesReferencePlugin_t structure to search. |
n | an unsigned int representing the index of the SpeciesTypeComponentMapInProduct_t to retrieve. |
n
is invalid, NULL
is returned.SpeciesTypeComponentMapInProduct_t * MultiSpeciesReferencePlugin_getSpeciesTypeComponentMapInProductById | ( | MultiSpeciesReferencePlugin_t * | msrp, |
const char * | sid | ||
) |
Get a SpeciesTypeComponentMapInProduct_t from the MultiSpeciesReferencePlugin_t based on its identifier.
msrp | the MultiSpeciesReferencePlugin_t structure to search. |
sid | a string representing the identifier of the SpeciesTypeComponentMapInProduct_t to retrieve. |
sid
or NULL
if no such SpeciesTypeComponentMapInProduct_t exists.SpeciesTypeComponentMapInProduct_t * MultiSpeciesReferencePlugin_removeSpeciesTypeComponentMapInProduct | ( | MultiSpeciesReferencePlugin_t * | msrp, |
unsigned int | n | ||
) |
Removes the nth SpeciesTypeComponentMapInProduct_t from this MultiSpeciesReferencePlugin_t and returns a pointer to it.
msrp | the MultiSpeciesReferencePlugin_t structure to search. |
n | an unsigned int representing the index of the SpeciesTypeComponentMapInProduct_t to remove. |
SpeciesTypeComponentMapInProduct_t * MultiSpeciesReferencePlugin_removeSpeciesTypeComponentMapInProductById | ( | MultiSpeciesReferencePlugin_t * | msrp, |
const char * | sid | ||
) |
Removes the SpeciesTypeComponentMapInProduct_t from this MultiSpeciesReferencePlugin_t based on its identifier and returns a pointer to it.
msrp | the MultiSpeciesReferencePlugin_t structure to search. |
sid | a string representing the identifier of the SpeciesTypeComponentMapInProduct_t to remove. |