libSBML C API
5.18.0
|
GeneProductRef_t encodes a references to a GeneProduct_t object declared in a ListOfGeneProducts_t attached to the enclosing Model_t object. GeneProductRef_t is derived from the FbcAssociation_t class.
GeneProductRef_t objects are used to construct the content of GeneProductAssociation_t objects. As described more fully in the documentation of the latter, a GeneProductAssociation_t is a container that may contain either (i) a single GeneProductRef_t or (ii) a logical expression built up with FbcAnd_t and FbcOr_t and ultimately containing two or more GeneProductRef_t objects.
Public Member Functions | |
GeneProductRef_t * | GeneProductRef_clone (GeneProductRef_t *gpr) |
Creates a deep copy of the given GeneProductRef_t structure. More... | |
GeneProductRef_t * | GeneProductRef_create (unsigned int level, unsigned int version, unsigned int pkgVersion) |
Creates a new GeneProductRef_t structure using the given SBML level and version , and the pkgVersion package version. More... | |
void | GeneProductRef_free (GeneProductRef_t *gpr) |
Frees the given GeneProductRef_t structure. More... | |
const char * | GeneProductRef_getGeneProduct (const GeneProductRef_t *gpr) |
Returns the value of the "geneProduct" attribute of the given GeneProductRef_t structure. More... | |
const char * | GeneProductRef_getId (const GeneProductRef_t *gpr) |
Returns the value of the "id" attribute of the given GeneProductRef_t structure. More... | |
const char * | GeneProductRef_getName (const GeneProductRef_t *gpr) |
Returns the value of the "name" attribute of the given GeneProductRef_t structure. More... | |
int | GeneProductRef_hasRequiredAttributes (const GeneProductRef_t *gpr) |
Predicate returning 1 (true) or 0 (false) depending on whether all the required attributes of the given GeneProductRef_t structure have been set. More... | |
int | GeneProductRef_isSetGeneProduct (const GeneProductRef_t *gpr) |
Predicate returning 1 (true) if the given GeneProductRef_t structure's "geneProduct" is set. More... | |
int | GeneProductRef_isSetId (const GeneProductRef_t *gpr) |
Predicate returning 1 (true) if the given GeneProductRef_t structure's "id" is set. More... | |
int | GeneProductRef_isSetName (const GeneProductRef_t *gpr) |
Predicate returning 1 (true) if the given GeneProductRef_t structure's "name" is set. More... | |
int | GeneProductRef_setGeneProduct (GeneProductRef_t *gpr, const char *geneProduct) |
Sets the "geneProduct" attribute of the given GeneProductRef_t structure. More... | |
int | GeneProductRef_setId (GeneProductRef_t *gpr, const char *id) |
Sets the "id" attribute of the given GeneProductRef_t structure. More... | |
int | GeneProductRef_setName (GeneProductRef_t *gpr, const char *name) |
Sets the "name" attribute of the given GeneProductRef_t structure. More... | |
int | GeneProductRef_unsetGeneProduct (GeneProductRef_t *gpr) |
Unsets the value of the "geneProduct" attribute of the given GeneProductRef_t structure. More... | |
int | GeneProductRef_unsetId (GeneProductRef_t *gpr) |
Unsets the value of the "id" attribute of the given GeneProductRef_t structure. More... | |
int | GeneProductRef_unsetName (GeneProductRef_t *gpr) |
Unsets the value of the "name" attribute of the given GeneProductRef_t structure. More... | |
GeneProductRef_t * GeneProductRef_clone | ( | GeneProductRef_t * | gpr | ) |
Creates a deep copy of the given GeneProductRef_t structure.
gpr | the GeneProductRef_t structure to be copied. |
GeneProductRef_t * GeneProductRef_create | ( | unsigned int | level, |
unsigned int | version, | ||
unsigned int | pkgVersion | ||
) |
Creates a new GeneProductRef_t structure using the given SBML level
and version
, and the pkgVersion
package version.
level | an unsigned int, the SBML level to assign to this GeneProductRef_t structure. |
version | an unsigned int, the SBML version to assign to this GeneProductRef_t structure. |
pkgVersion | an unsigned int, the version of the package to assign to this GeneProductRef_t structure. |
void GeneProductRef_free | ( | GeneProductRef_t * | gpr | ) |
Frees the given GeneProductRef_t structure.
gpr | the GeneProductRef_t structure to be freed. |
const char * GeneProductRef_getGeneProduct | ( | const GeneProductRef_t * | gpr | ) |
Returns the value of the "geneProduct" attribute of the given GeneProductRef_t structure.
gpr | the GeneProductRef_t structure. |
const char * GeneProductRef_getId | ( | const GeneProductRef_t * | gpr | ) |
Returns the value of the "id" attribute of the given GeneProductRef_t structure.
gpr | the GeneProductRef_t structure. |
const char * GeneProductRef_getName | ( | const GeneProductRef_t * | gpr | ) |
Returns the value of the "name" attribute of the given GeneProductRef_t structure.
gpr | the GeneProductRef_t structure. |
int GeneProductRef_hasRequiredAttributes | ( | const GeneProductRef_t * | gpr | ) |
Predicate returning 1
(true) or 0
(false) depending on whether all the required attributes of the given GeneProductRef_t structure have been set.
gpr | the GeneProductRef_t structure to check. |
1
(true) if all the required attributes for this structure have been defined, 0
(false) otherwise. int GeneProductRef_isSetGeneProduct | ( | const GeneProductRef_t * | gpr | ) |
Predicate returning 1
(true) if the given GeneProductRef_t structure's "geneProduct" is set.
gpr | the GeneProductRef_t structure. |
1
(true) if the "geneProduct" of this GeneProductRef_t structure is set, 0
(false) otherwise. int GeneProductRef_isSetId | ( | const GeneProductRef_t * | gpr | ) |
Predicate returning 1
(true) if the given GeneProductRef_t structure's "id" is set.
gpr | the GeneProductRef_t structure. |
1
(true) if the "id" of this GeneProductRef_t structure is set, 0
(false) otherwise. int GeneProductRef_isSetName | ( | const GeneProductRef_t * | gpr | ) |
Predicate returning 1
(true) if the given GeneProductRef_t structure's "name" is set.
gpr | the GeneProductRef_t structure. |
1
(true) if the "name" of this GeneProductRef_t structure is set, 0
(false) otherwise. int GeneProductRef_setGeneProduct | ( | GeneProductRef_t * | gpr, |
const char * | geneProduct | ||
) |
Sets the "geneProduct" attribute of the given GeneProductRef_t structure.
This function copies the string given in geneProduct
. If the string is a null pointer, this function is equivalent to calling GeneProductRef_unsetGeneProduct().
gpr | the GeneProductRef_t structure. |
geneProduct | the string to which the structures "geneProduct" attribute should be set. |
geneProduct
is equivalent to unsetting the value of the "geneProduct" attribute. int GeneProductRef_setId | ( | GeneProductRef_t * | gpr, |
const char * | id | ||
) |
Sets the "id" attribute of the given GeneProductRef_t structure.
This function copies the string given in id
. If the string is a null pointer, this function is equivalent to calling GeneProductRef_unsetId().
gpr | the GeneProductRef_t structure. |
id | the string to which the structures "id" attribute should be set. |
id
is equivalent to unsetting the value of the "id" attribute. int GeneProductRef_setName | ( | GeneProductRef_t * | gpr, |
const char * | name | ||
) |
Sets the "name" attribute of the given GeneProductRef_t structure.
This function copies the string given in name
. If the string is a null pointer, this function is equivalent to calling GeneProductRef_unsetName().
gpr | the GeneProductRef_t structure. |
name | the string to which the structures "name" attribute should be set. |
name
is equivalent to unsetting the value of the "name" attribute. int GeneProductRef_unsetGeneProduct | ( | GeneProductRef_t * | gpr | ) |
Unsets the value of the "geneProduct" attribute of the given GeneProductRef_t structure.
gpr | the GeneProductRef_t structure. |
int GeneProductRef_unsetId | ( | GeneProductRef_t * | gpr | ) |
Unsets the value of the "id" attribute of the given GeneProductRef_t structure.
gpr | the GeneProductRef_t structure. |
int GeneProductRef_unsetName | ( | GeneProductRef_t * | gpr | ) |
Unsets the value of the "name" attribute of the given GeneProductRef_t structure.
gpr | the GeneProductRef_t structure. |