Definitions of FunctionDefinition and ListOfFunctionDefinitions.


Functions | |
| FunctionDefinition_t * | FunctionDefinition_clone (const FunctionDefinition_t *c) |
| Creates a deep copy of the given FunctionDefinition_t structure. | |
| FunctionDefinition_t * | FunctionDefinition_create (unsigned int level, unsigned int version) |
Creates a new FunctionDefinition_t structure using the given SBML level and version values. | |
| FunctionDefinition_t * | FunctionDefinition_createWithNS (SBMLNamespaces_t *sbmlns) |
| Creates a new FunctionDefinition_t structure using the given SBMLNamespaces_t structure. | |
| void | FunctionDefinition_free (FunctionDefinition_t *fd) |
| Frees the given FunctionDefinition. | |
| const ASTNode_t * | FunctionDefinition_getArgument (const FunctionDefinition_t *fd, unsigned int n) |
| Get the nth argument (bound variable) to the given FunctionDefinition_t structure. | |
| const ASTNode_t * | FunctionDefinition_getArgumentByName (FunctionDefinition_t *fd, const char *name) |
Get the argument named name to the given FunctionDefinition_t structure. | |
| const ASTNode_t * | FunctionDefinition_getBody (const FunctionDefinition_t *fd) |
| Get the mathematical expression that constitutes the body of the given function definition. | |
| const char * | FunctionDefinition_getId (const FunctionDefinition_t *fd) |
| Get the identifier of the given FunctionDefinition_t structure. | |
| const ASTNode_t * | FunctionDefinition_getMath (const FunctionDefinition_t *fd) |
| Get the mathematical formula implemented by the given function. | |
| const char * | FunctionDefinition_getName (const FunctionDefinition_t *fd) |
| Get the name of the given FunctionDefinition_t structure. | |
| const XMLNamespaces_t * | FunctionDefinition_getNamespaces (FunctionDefinition_t *c) |
| Returns a list of XMLNamespaces_t associated with this FunctionDefinition_t structure. | |
| unsigned int | FunctionDefinition_getNumArguments (const FunctionDefinition_t *fd) |
| Get the number of arguments that the given function definition takes. | |
| int | FunctionDefinition_isSetId (const FunctionDefinition_t *fd) |
Predicate returning true or false depending on whether the given Compartment_t structure's "id" attribute is set. | |
| int | FunctionDefinition_isSetMath (const FunctionDefinition_t *fd) |
Predicate returning true or false depending on whether the given Compartment_t structure's "math" subelement is set. | |
| int | FunctionDefinition_isSetName (const FunctionDefinition_t *fd) |
Predicate returning true or false depending on whether the given Compartment_t structure's "name" attribute is set. | |
| int | FunctionDefinition_setId (FunctionDefinition_t *fd, const char *sid) |
| Sets the value of the "id" attribute of a FunctionDefinition_t structure. | |
| int | FunctionDefinition_setMath (FunctionDefinition_t *fd, const ASTNode_t *math) |
| Sets the "math" subelement of a given FunctionDefinition_t structure. | |
| int | FunctionDefinition_setName (FunctionDefinition_t *fd, const char *name) |
| Sets the value of the "name" attribute of a FunctionDefinition_t structure. | |
| int | FunctionDefinition_unsetName (FunctionDefinition_t *fd) |
| Unsets the "name" attribute of the given FunctionDefinition_t structure. | |
| FunctionDefinition_t * | ListOfFunctionDefinitions_getById (ListOf_t *lo, const char *sid) |
| FunctionDefinition_t * | ListOfFunctionDefinitions_removeById (ListOf_t *lo, const char *sid) |
Removes item in this ListOf items with the given id or NULL if no such item exists. | |
| FunctionDefinition_t* FunctionDefinition_clone | ( | const FunctionDefinition_t * | fd | ) |
Creates a deep copy of the given FunctionDefinition_t structure.
| fd | the FunctionDefinition_t structure to be copied |
| FunctionDefinition_t* FunctionDefinition_create | ( | unsigned int | level, |
| unsigned int | version | ||
| ) |
Creates a new FunctionDefinition_t structure using the given SBML level and version values.
| level | an unsigned int, the SBML Level to assign to this FunctionDefinition |
| version | an unsigned int, the SBML Version to assign to this FunctionDefinition |
level and version for the document override those used to create the FunctionDefinition. 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. | FunctionDefinition_t* FunctionDefinition_createWithNS | ( | SBMLNamespaces_t * | sbmlns | ) |
Creates a new FunctionDefinition_t structure using the given SBMLNamespaces_t structure.
| sbmlns | SBMLNamespaces, a pointer to an SBMLNamespaces structure to assign to this FunctionDefinition |
sbmlns namespaces for the document override those used to create the FunctionDefinition. 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 FunctionDefinition_free | ( | FunctionDefinition_t * | fd | ) |
Frees the given FunctionDefinition.
| fd | the FunctionDefinition_t structure |
| const ASTNode_t* FunctionDefinition_getArgument | ( | const FunctionDefinition_t * | fd, |
| unsigned int | n | ||
| ) |
Get the nth argument (bound variable) to the given FunctionDefinition_t structure.
| fd | the FunctionDefinition_t structure |
| n | the index of the argument to return |
| const ASTNode_t* FunctionDefinition_getArgumentByName | ( | FunctionDefinition_t * | fd, |
| const char * | name | ||
| ) |
Get the argument named name to the given FunctionDefinition_t structure.
| fd | the FunctionDefinition_t structure |
| name | the exact name (case-sensitive) of the sought-after argument |
| const ASTNode_t* FunctionDefinition_getBody | ( | const FunctionDefinition_t * | fd | ) |
Get the mathematical expression that constitutes the body of the given function definition.
| fd | the FunctionDefinition_t structure |
| const char* FunctionDefinition_getId | ( | const FunctionDefinition_t * | fd | ) |
Get the identifier of the given FunctionDefinition_t structure.
| fd | the FunctionDefinition_t structure |
| const ASTNode_t* FunctionDefinition_getMath | ( | const FunctionDefinition_t * | fd | ) |
Get the mathematical formula implemented by the given function.
| fd | the FunctionDefinition_t structure |
| const char* FunctionDefinition_getName | ( | const FunctionDefinition_t * | fd | ) |
Get the name of the given FunctionDefinition_t structure.
| fd | the FunctionDefinition_t structure |
| const XMLNamespaces_t* FunctionDefinition_getNamespaces | ( | FunctionDefinition_t * | fd | ) |
Returns a list of XMLNamespaces_t associated with this FunctionDefinition_t structure.
| fd | the FunctionDefinition_t structure |
| unsigned int FunctionDefinition_getNumArguments | ( | const FunctionDefinition_t * | fd | ) |
Get the number of arguments that the given function definition takes.
| fd | the FunctionDefinition_t structure |
| int FunctionDefinition_isSetId | ( | const FunctionDefinition_t * | fd | ) |
Predicate returning true or false depending on whether the given Compartment_t structure's "id" attribute is set.
| fd | the FunctionDefinition_t structure |
| int FunctionDefinition_isSetMath | ( | const FunctionDefinition_t * | fd | ) |
Predicate returning true or false depending on whether the given Compartment_t structure's "math" subelement is set.
| fd | the FunctionDefinition_t structure |
| int FunctionDefinition_isSetName | ( | const FunctionDefinition_t * | fd | ) |
Predicate returning true or false depending on whether the given Compartment_t structure's "name" attribute is set.
| fd | the FunctionDefinition_t structure |
| int FunctionDefinition_setId | ( | FunctionDefinition_t * | fd, |
| const char * | sid | ||
| ) |
Sets the value of the "id" attribute of a FunctionDefinition_t structure.
| fd | the FunctionDefinition_t structure to set. |
| sid | the identifier to assign to the "id" attribute of fd |
| int FunctionDefinition_setMath | ( | FunctionDefinition_t * | fd, |
| const ASTNode_t * | math | ||
| ) |
Sets the "math" subelement of a given FunctionDefinition_t structure.
The ASTNode_t structure given in math is copied.
| fd | the FunctionDefinition_t structure to set. |
| math | the ASTNode_t structure to copy and assign to the "math" subelement of the given FunctionDefinition_t structure |
| int FunctionDefinition_setName | ( | FunctionDefinition_t * | fd, |
| const char * | name | ||
| ) |
Sets the value of the "name" attribute of a FunctionDefinition_t structure.
| fd | the FunctionDefinition_t structure to set. |
| name | the identifier to assign to the "name" attribute of fd |
| int FunctionDefinition_unsetName | ( | FunctionDefinition_t * | fd | ) |
Unsets the "name" attribute of the given FunctionDefinition_t structure.
| fd | the FunctionDefinition_t structure |
| FunctionDefinition_t* ListOfFunctionDefinitions_getById | ( | ListOf_t * | lo, |
| const char * | sid | ||
| ) |
NULL if no such item exists. | FunctionDefinition_t* ListOfFunctionDefinitions_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.