libSBML C API
5.18.0
|
Each FunctionTerm_t is associated with a result and with a Boolean function inside a Math element that can be used to set the conditions under which this term is selected.
Public Member Functions | |
FunctionTerm_t * | FunctionTerm_clone (FunctionTerm_t *ft) |
Returns a copy of the given FunctionTerm_t structure. More... | |
FunctionTerm_t * | FunctionTerm_create (unsigned int level, unsigned int version, unsigned int pkgVersion) |
Creates a new FunctionTerm_t structure using the given SBML level and version , and the pkgVersion package version. More... | |
void | FunctionTerm_free (FunctionTerm_t *ft) |
Frees the given FunctionTerm_t structure. More... | |
const ASTNode_t * | FunctionTerm_getMath (const FunctionTerm_t *ft) |
Returns the value of the "math" element of this FunctionTerm_t. More... | |
int | FunctionTerm_getResultLevel (FunctionTerm_t *ft) |
Takes a FunctionTerm_t structure and returns its resultLevel. More... | |
int | FunctionTerm_hasRequiredAttributes (const FunctionTerm_t *ft) |
Predicate returning 1 (true) or 0 (false) depending on whether all the required attributes for the given FunctionTerm_t structure have been set. More... | |
int | FunctionTerm_hasRequiredElements (const FunctionTerm_t *ft) |
Predicate returning 1 (true) or 0 (false) depending on whether all the required elements for the given FunctionTerm_t structure have been set. More... | |
int | FunctionTerm_isSetMath (const FunctionTerm_t *ft) |
Predicate returning 1 (true) if this FunctionTerm_t's "math" element is set. More... | |
int | FunctionTerm_isSetResultLevel (FunctionTerm_t *ft) |
Predicate returning 1 (true) or 0 (false) depending on whether the given FunctionTerm_t structure's resultLevel is set. More... | |
int | FunctionTerm_setMath (FunctionTerm_t *ft, const ASTNode_t *math) |
Sets the value of the "math" element of this FunctionTerm_t. More... | |
int | FunctionTerm_setResultLevel (FunctionTerm_t *ft, int resultLevel) |
Sets the "resultLevel" attribute of the given FunctionTerm_t structure. More... | |
int | FunctionTerm_unsetMath (FunctionTerm_t *ft) |
Unsets the value of the "math" element of this FunctionTerm_t. More... | |
int | FunctionTerm_unsetResultLevel (FunctionTerm_t *ft) |
Unsets the "resultLevel" attribute of the given FunctionTerm_t structure. More... | |
FunctionTerm_t * | ListOfFunctionTerms_getById (ListOf_t *lo, const char *sid) |
Return the FunctionTerm_t indicated by the given sid . More... | |
FunctionTerm_t * FunctionTerm_clone | ( | FunctionTerm_t * | ft | ) |
Returns a copy of the given FunctionTerm_t structure.
ft | the FunctionTerm_t structure to copy. |
FunctionTerm_t * FunctionTerm_create | ( | unsigned int | level, |
unsigned int | version, | ||
unsigned int | pkgVersion | ||
) |
Creates a new FunctionTerm_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 FunctionTerm_t. |
version | an unsigned int, the SBML Version to assign to this FunctionTerm_t. |
pkgVersion | an unsigned int, the SBML 'Qual' package Version to assign to this FunctionTerm_t. |
void FunctionTerm_free | ( | FunctionTerm_t * | ft | ) |
Frees the given FunctionTerm_t structure.
ft | the FunctionTerm_t structure to free. |
const ASTNode_t * FunctionTerm_getMath | ( | const FunctionTerm_t * | ft | ) |
Returns the value of the "math" element of this FunctionTerm_t.
ft | the FunctionTerm_t structure whose math is sought. |
int FunctionTerm_getResultLevel | ( | FunctionTerm_t * | ft | ) |
Takes a FunctionTerm_t structure and returns its resultLevel.
ft | the FunctionTerm_t whose resultLevel is sought. |
int
. int FunctionTerm_hasRequiredAttributes | ( | const FunctionTerm_t * | ft | ) |
Predicate returning 1
(true) or 0
(false) depending on whether all the required attributes for the given FunctionTerm_t structure have been set.
int FunctionTerm_hasRequiredElements | ( | const FunctionTerm_t * | ft | ) |
Predicate returning 1
(true) or 0
(false) depending on whether all the required elements for the given FunctionTerm_t structure have been set.
int FunctionTerm_isSetMath | ( | const FunctionTerm_t * | ft | ) |
Predicate returning 1
(true) if this FunctionTerm_t's "math" element is set.
ft | the FunctionTerm_t structure. |
1
(true) if this FunctionTerm_t's "math" element has been set, otherwise 0
(false) is returned. int FunctionTerm_isSetResultLevel | ( | FunctionTerm_t * | ft | ) |
Predicate returning 1
(true) or 0
(false) depending on whether the given FunctionTerm_t structure's resultLevel is set.
ft | the FunctionTerm_t structure to query. |
1
(true) if the "resultLevel" attribute of the given FunctionTerm_t structure is set, 0
(false) otherwise. int FunctionTerm_setMath | ( | FunctionTerm_t * | ft, |
const ASTNode_t * | math | ||
) |
Sets the value of the "math" element of this FunctionTerm_t.
ft | the FunctionTerm_t structure. |
math | ASTNode_t value of the "math" element to be set. |
int FunctionTerm_setResultLevel | ( | FunctionTerm_t * | ft, |
int | resultLevel | ||
) |
Sets the "resultLevel" attribute of the given FunctionTerm_t structure.
ft | the FunctionTerm_t structure. |
resultLevel | the value of resultLevel to assign to the "resultLevel" attribute. |
int FunctionTerm_unsetMath | ( | FunctionTerm_t * | ft | ) |
Unsets the value of the "math" element of this FunctionTerm_t.
ft | the FunctionTerm_t structure. |
int FunctionTerm_unsetResultLevel | ( | FunctionTerm_t * | ft | ) |
Unsets the "resultLevel" attribute of the given FunctionTerm_t structure.
ft | the FunctionTerm_t structure to unset. |
FunctionTerm_t * ListOfFunctionTerms_getById | ( | ListOf_t * | lo, |
const char * | sid | ||
) |
Return the FunctionTerm_t indicated by the given sid
.
lo | the ListOf_t structure to use. |
sid | a string, the identifier of the FunctionTerm_t being sought. |
NULL
if no such FunctionTerm_t exists.