COPASI API
4.16.103
|
The class for handling a chemical kinetic function. More...
#include <CFunction.h>
Public Member Functions | |
bool | addVariable (const std::string &name, CFunctionParameter::Role usage=CFunctionParameter::VARIABLE, const CFunctionParameter::DataType &type=CFunctionParameter::FLOAT64) |
virtual const C_FLOAT64 & | calcValue (const CCallParameters< C_FLOAT64 > &callParameters) |
CFunction (const std::string &name="NoName", const CCopasiContainer *pParent=NULL, const Type &type=Function) | |
CFunction (const CFunction &src, const CCopasiContainer *pParent=NULL) | |
CFunction * | createCopy () const |
void | createListOfParametersForMathML (std::vector< std::vector< std::string > > &env) |
virtual bool | dependsOn (const C_FLOAT64 *parameter, const CCallParameters< C_FLOAT64 > &callParameters) const |
const std::string & | getKey () const |
const std::string & | getSBMLId () const |
virtual size_t | getVariableIndex (const std::string &name) const |
CFunctionParameters & | getVariables () |
const CFunctionParameters & | getVariables () const |
virtual const C_FLOAT64 & | getVariableValue (const size_t &index) const |
const TriLogic & | isReversible () const |
bool | isSuitable (const size_t noSubstrates, const size_t noProducts, const TriLogic reversible) |
virtual void | load (CReadConfig &configBuffer, CReadConfig::Mode mode=CReadConfig::SEARCH) |
bool | operator== (const CFunction &rhs) const |
virtual bool | setInfix (const std::string &infix) |
virtual bool | setInfix (const std::string &infix, bool compile) |
void | setReversible (const TriLogic &reversible) |
void | setSBMLId (const std::string &id) |
std::pair< CFunction *, CFunction * > | splitFunction (const CEvaluationNode *node, const std::string &name1, const std::string &name2) const |
virtual void | writeMathML (std::ostream &out, size_t l=0) const |
virtual std::string | writeMathML (const std::vector< std::vector< std::string > > &variables, bool expand=true, bool fullExpand=true) const |
virtual | ~CFunction () |
![]() | |
bool | calls (std::set< std::string > &list) const |
CEvaluationTree (const std::string &name="NoName", const CCopasiContainer *pParent=NULL, const Type &type=Function) | |
CEvaluationTree (const CEvaluationTree &src, const CCopasiContainer *pParent=NULL) | |
virtual bool | compile () |
bool | dependsOnTree (const std::string &name) const |
CCopasiObject::DataObjectSet | getDeletedObjects () const |
std::string::size_type | getErrorPosition () const |
const std::string & | getInfix () const |
const std::vector < CEvaluationNode * > & | getNodeList () const |
CEvaluationNode * | getRoot () |
const CEvaluationNode * | getRoot () const |
const CEvaluationTree::Type & | getType () const |
bool | hasCircularDependency () const |
bool | hasDiscontinuity () const |
bool | isBoolean () const |
bool | isUsable () const |
bool | operator== (const CEvaluationTree &rhs) const |
virtual bool | setRoot (CEvaluationNode *pRootNode) |
bool | setTree (const ASTNode &pRootNode) |
virtual ASTNode * | toAST (const CCopasiDataModel *pDataModel) const |
bool | updateTree () |
virtual | ~CEvaluationTree () |
![]() | |
virtual bool | add (CCopasiObject *pObject, const bool &adopt=true) |
CCopasiContainer (const std::string &name, const CCopasiContainer *pParent=NULL, const std::string &type="CN", const unsigned C_INT32 &flag=CCopasiObject::Container) | |
CCopasiContainer (const CCopasiContainer &src, const CCopasiContainer *pParent=NULL) | |
virtual std::string | getChildObjectUnits (const CCopasiObject *pObject) const |
virtual const CObjectInterface * | getObject (const CCopasiObjectName &cn) const |
virtual const objectMap & | getObjects () const |
virtual std::string | getUnits () const |
virtual const CCopasiObject * | getValueObject () const |
virtual bool | remove (CCopasiObject *pObject) |
virtual | ~CCopasiContainer () |
![]() | |
void | addDirectDependency (const CCopasiObject *pObject) |
CCopasiObject (const CCopasiObject &src, const CCopasiContainer *pParent=NULL) | |
void | clearDirectDependencies () |
void | clearRefresh () |
bool | dependsOn (DataObjectSet candidates, const DataObjectSet &context=DataObjectSet()) const |
void | getAllDependencies (DataObjectSet &dependencies, const DataObjectSet &context) const |
virtual CCopasiObjectName | getCN () const |
virtual const DataObjectSet & | getDirectDependencies (const DataObjectSet &context=DataObjectSet()) const |
CCopasiContainer * | getObjectAncestor (const std::string &type) const |
CCopasiDataModel * | getObjectDataModel () |
const CCopasiDataModel * | getObjectDataModel () const |
virtual std::string | getObjectDisplayName (bool regular=true, bool richtext=false) const |
const std::string & | getObjectName () const |
CCopasiContainer * | getObjectParent () const |
const std::string & | getObjectType () const |
virtual const CObjectInterface::ObjectSet & | getPrerequisites () const |
virtual Refresh * | getRefresh () const |
UpdateMethod * | getUpdateMethod () const |
virtual void * | getValuePointer () const |
bool | hasCircularDependencies (DataObjectSet &candidates, DataObjectSet &verified, const DataObjectSet &context) const |
bool | hasUpdateMethod () const |
bool | isArray () const |
bool | isContainer () const |
bool | isDataModel () const |
bool | isMatrix () const |
bool | isNameVector () const |
bool | isNonUniqueName () const |
virtual bool | isPrerequisiteForContext (const CObjectInterface *pObject, const CMath::SimulationContextFlag &context, const CObjectInterface::ObjectSet &changedObjects) const |
bool | isReference () const |
bool | isRoot () const |
bool | isSeparator () const |
bool | isStaticString () const |
bool | isValueBool () const |
bool | isValueDbl () const |
bool | isValueInt () const |
bool | isValueInt64 () const |
bool | isValueString () const |
bool | isVector () const |
virtual bool | mustBeDeleted (const DataObjectSet &deletedObjects) const |
virtual void | print (std::ostream *ostream) const |
void | removeDirectDependency (const CCopasiObject *pObject) |
void | setDirectDependencies (const DataObjectSet &directDependencies) |
bool | setObjectName (const std::string &name) |
virtual bool | setObjectParent (const CCopasiContainer *pParent) |
void | setObjectValue (const C_FLOAT64 &value) |
void | setObjectValue (const C_INT32 &value) |
void | setObjectValue (const bool &value) |
template<class CType > | |
void | setRefresh (CType *pType, void(CType::*method)(void)) |
template<class CType > | |
void | setUpdateMethod (CType *pType, void(CType::*method)(const C_FLOAT64 &)) |
template<class CType > | |
void | setUpdateMethod (CType *pType, void(CType::*method)(const C_INT32 &)) |
template<class CType > | |
void | setUpdateMethod (CType *pType, void(CType::*method)(const bool &)) |
virtual | ~CCopasiObject () |
![]() | |
CObjectInterface () | |
virtual | ~CObjectInterface () |
![]() | |
bool | addUnsupportedAnnotation (const std::string &name, const std::string &xml) |
CAnnotation () | |
CAnnotation (const CAnnotation &src) | |
const std::string & | getMiriamAnnotation () const |
const std::string & | getNotes () const |
UnsupportedAnnotation & | getUnsupportedAnnotations () |
const UnsupportedAnnotation & | getUnsupportedAnnotations () const |
bool | operator== (const CAnnotation &rhs) const |
bool | removeUnsupportedAnnotation (const std::string &name) |
bool | replaceUnsupportedAnnotation (const std::string &name, const std::string &xml) |
void | setMiriamAnnotation (const std::string &miriamAnnotation, const std::string &newId, const std::string &oldId) |
void | setNotes (const std::string ¬es) |
virtual | ~CAnnotation () |
Static Public Member Functions | |
static bool | completeFunctionList (std::vector< CFunction * > &list, const size_t &added=0) |
![]() | |
static CEvaluationTree * | copy (const CEvaluationTree &src) |
static CEvaluationTree * | create (CEvaluationTree::Type type) |
static CEvaluationNode * | fromAST (const ASTNode *pASTNode) |
![]() | |
static std::vector< Refresh * > | buildUpdateSequence (const DataObjectSet &objects, const DataObjectSet &uptoDateObjects, const DataObjectSet &context=DataObjectSet()) |
static void | setRenameHandler (CRenameHandler *rh) |
![]() | |
static CAnnotation * | castObject (CCopasiObject *pObject) |
static const CAnnotation * | castObject (const CCopasiObject *pObject) |
Protected Member Functions | |
bool | initVariables () |
![]() | |
void | buildCalculationSequence () |
void | calculate () |
bool | compileNodes () |
bool | parse () |
void | setType (const CEvaluationTree::Type &type) |
![]() | |
template<class CType > | |
CCopasiObject * | addMatrixReference (const std::string &name, CType &reference, const unsigned C_INT32 &flag=0) |
template<class CType > | |
CCopasiObject * | addObjectReference (const std::string &name, CType &reference, const unsigned C_INT32 &flag=0) |
template<class CType > | |
CCopasiObject * | addVectorReference (const std::string &name, CType &reference, const unsigned C_INT32 &flag=0) |
void | initObjects () |
![]() | |
CCopasiObject () | |
CCopasiObject (const std::string &name, const CCopasiContainer *pParent=NULL, const std::string &type="CN", const unsigned C_INT32 &flag=0) | |
Private Attributes | |
CCallParameters< C_FLOAT64 > ::const_iterator | mCallParametersBegin |
TriLogic | mReversible |
std::string | mSBMLId |
CFunctionParameters | mVariables |
Friends | |
std::ostream & | operator<< (std::ostream &os, const CFunction &f) |
Additional Inherited Members | |
![]() | |
enum | Type { Function = 0, MassAction, PreDefined, UserDefined, Expression, MathExpression } |
![]() | |
typedef std::multimap < std::string, CCopasiObject * > | objectMap |
![]() | |
typedef std::set< const CCopasiObject * > | DataObjectSet |
typedef std::vector< Refresh * > | DataUpdateSequence |
![]() | |
typedef std::set< const CObjectInterface * > | ObjectSet |
typedef std::vector < CObjectInterface * > | UpdateSequence |
![]() | |
typedef std::map< std::string, std::string > | UnsupportedAnnotation |
![]() | |
static const std::string | TypeName [] |
static const char * | XMLType [] |
![]() | |
static const std::vector < CCopasiContainer * > | EmptyList |
![]() | |
enum | Flag { Container = 0x1, Vector = 0x2, Matrix = 0x4, NameVector = 0x8, Reference = 0x10, ValueBool = 0x20, ValueInt = 0x40, ValueInt64 = 0x80, ValueDbl = 0x100, NonUniqueName = 0x200, StaticString = 0x400, ValueString = 0x800, Separator = 0x1000, ModelEntity = 0x2000, Array = 0x4000, DataModel = 0x8000, Root = 0x10000, Gui = 0x20000 } |
![]() | |
std::vector< CEvaluationNode * > | mCalculationSequence |
std::string | mInfix |
std::vector< CEvaluationNode * > * | mpNodeList |
CEvaluationNode * | mpRoot |
CEvaluationTree::Type | mType |
bool | mUsable |
C_FLOAT64 | mValue |
![]() | |
objectMap | mObjects |
![]() | |
std::string | mKey |
![]() | |
static CRenameHandler * | smpRenameHandler = NULL |
The class for handling a chemical kinetic function.
This class is designed to handle all about a given chemical kinetic function from editing and displaying (with help of MathML) the function to calculating the function value.
Definition at line 29 of file CFunction.h.
CFunction::CFunction | ( | const std::string & | name = "NoName" , |
const CCopasiContainer * | pParent = NULL , |
||
const Type & | type = Function |
||
) |
Default constructor
const | std::string & name (default: "NoName") |
const | CEvaluationTree::Type & type (default: Function) |
const | CCopasiContainer * pParent (default: NULL) |
Definition at line 25 of file CFunction.cpp.
References CKeyFactory::add(), CCopasiRootContainer::getKeyFactory(), and CAnnotation::mKey.
Referenced by createCopy(), and splitFunction().
CFunction::CFunction | ( | const CFunction & | src, |
const CCopasiContainer * | pParent = NULL |
||
) |
Copy constructor
const | CFunction & src |
const | CCopasiContainer * pParent (default: NULL) |
Definition at line 38 of file CFunction.cpp.
References CKeyFactory::add(), CEvaluationTree::compile(), CCopasiRootContainer::getKeyFactory(), CAnnotation::getMiriamAnnotation(), CAnnotation::mKey, and CAnnotation::setMiriamAnnotation().
|
virtual |
Destructor
Definition at line 53 of file CFunction.cpp.
References CCopasiRootContainer::getKeyFactory(), CAnnotation::mKey, and CKeyFactory::remove().
bool CFunction::addVariable | ( | const std::string & | name, |
CFunctionParameter::Role | usage = CFunctionParameter::VARIABLE , |
||
const CFunctionParameter::DataType & | type = CFunctionParameter::FLOAT64 |
||
) |
Function to add the description of a variable.
const | string & name |
const | string & usage (Default: VARIABLE) |
const | CFunctionParameters::DataType & type (Default: value) |
Definition at line 154 of file CFunction.cpp.
References CFunctionParameters::add(), and mVariables.
Referenced by SBMLImporter::createCFunctionFromFunctionTree(), and CReaction::setFunctionFromExpressionTree().
|
virtual |
Function to calculate the value of the function
const | CCallParameters<C_FLOAT64> & callParameters |
Reimplemented in CMassAction.
Definition at line 159 of file CFunction.cpp.
References CCallParameters< Type >::begin(), CEvaluationTree::calculate(), mCallParametersBegin, and CEvaluationTree::mValue.
Referenced by CEvaluationNodeCall::calculate(), CReaction::calculate(), CReaction::calculatePartialDerivative(), and main().
|
static |
Complete the list of evaluation tree such that all called trees are includes.
std::vector< | CFunction * > & list |
const | size_t & added (Default: list.size()) |
Definition at line 303 of file CFunction.cpp.
References C_INVALID_INDEX, CEvaluationNode::CALL, CCopasiRootContainer::getFunctionList(), CCopasiVectorN< CType >::getIndex(), CEvaluationTree::getNodeList(), and CFunctionDB::loadedFunctions().
Referenced by CFunctionDB::getUsedFunctions().
CFunction * CFunction::createCopy | ( | ) | const |
Function to duplicate itself
Definition at line 428 of file CFunction.cpp.
References CFunction(), CEvaluationNode::copyBranch(), CEvaluationTree::mpRoot, mReversible, and CEvaluationTree::setRoot().
void CFunction::createListOfParametersForMathML | ( | std::vector< std::vector< std::string > > & | env | ) |
Function to create a list of the names of the function parameters in MathML format. This list can be passed as the env argument to the writeMathML() method.
std::vector<std::vector<std::string> | > & env |
Definition at line 340 of file CFunction.cpp.
References CMathMl::fixName(), CCopasiObject::getObjectName(), getVariables(), and CFunctionParameters::size().
Referenced by CQExpressionWidget::writeMathML().
|
virtual |
Function to return whether it depends on the given parameter
const | void * parameter |
const | CCallParameters<C_FLOAT64> & callParameters |
bool | dependsOn |
Reimplemented in CMassAction.
Definition at line 168 of file CFunction.cpp.
References CCallParameters< Type >::begin(), and CCallParameters< Type >::end().
Referenced by CReaction::calculatePartialDerivative().
|
virtual |
Retrieves the key of the EvaluationTree
Reimplemented from CAnnotation.
Definition at line 58 of file CFunction.cpp.
References CAnnotation::getKey().
Referenced by CCopasiXMLParser::FunctionElement::end(), CODEExporterC::exportSingleFunction(), SBMLImporter::importMIRIAM(), CQFunctionDM::insertRows(), CODEExporterC::KineticFunction2ODEmember(), CODEExporterC::preprocess(), CCopasiXML::saveFunctionList(), CCopasiXML::saveModel(), CODEExporterC::setExportNameOfFunction(), FunctionWidget1::slotBtnNew(), ReactionsWidget1::slotGotoFunction(), ReactionsWidget1::slotNewFunction(), and CSBMLExporter::updateMIRIAMAnnotation().
const std::string & CFunction::getSBMLId | ( | ) | const |
Returns a reference to the SBML Id.
Definition at line 68 of file CFunction.cpp.
References mSBMLId.
Referenced by CSBMLExporter::collectIds(), SBMLImporter::createCFunctionFromFunctionDefinition(), SBMLImporter::createCModelFromSBMLDocument(), CCopasiXML::saveFunctionList(), CSBMLExporter::setFunctionSBMLIds(), and CEvaluationNodeCall::toAST().
|
virtual |
Function to retrieve the index to the value of the named variable.
const | std::string & name |
Reimplemented from CEvaluationTree.
Definition at line 133 of file CFunction.cpp.
References CFunctionParameters::findParameterByName(), and mVariables.
Referenced by CODEExporter::exportKineticFunction(), and CODEExporter::exportSingleFunction().
CFunctionParameters & CFunction::getVariables | ( | ) |
Function to retrive the definition of the parameters
Definition at line 148 of file CFunction.cpp.
References mVariables.
Referenced by SBMLImporter::areEqualFunctions(), CFunctionAnalyzer::checkKineticFunction(), CEvaluationNodeCall::compile(), FunctionWidget1::copyFunctionContentsToFunction(), SBMLImporter::createCReactionFromReaction(), SBMLImporter::createExpressionFromFunction(), CSBMLExporter::createKineticExpression(), createListOfParametersForMathML(), CKinFunction::createParameters(), SBMLImporter::doMapping(), CCopasiXMLParser::ListOfParameterDescriptionsElement::end(), CCopasiXMLParser::FunctionElement::end(), CFunctionAnalyzer::evaluateNode(), expand_function_call(), CODEExporter::exportKineticFunction(), CODEExporterC::exportSingleFunction(), SBMLImporter::findCorrespondingFunction(), CFindDimensions::findDimensions(), FunctionWidget1::functionParametersChanged(), CReactionInterface::getDeletedParameters(), CReactionInterface::initFromReaction(), CReactionInterface::initMapping(), FunctionWidget1::loadParameterTable(), FunctionWidget1::loadUsageTable(), CCopasiXML::saveFunctionList(), SBMLImporter::setCorrectUsage(), CReaction::setFunction(), CReaction::setFunctionFromExpressionTree(), CMassAction::setInfix(), CFindDimensions::setupDimensions(), FunctionWidget1::slotTableValueChanged(), splitFunction(), CCopasiXMLParser::ParameterDescriptionElement::start(), test_compare_utilities::test_copasi_function_expansion(), test000078::test_l2v4_import_unordered_functions(), CReaction::variable2object(), CReactionInterface::writeBackToReaction(), and writeMathML().
const CFunctionParameters & CFunction::getVariables | ( | ) | const |
Function to retrive the definition of the parameters
Definition at line 151 of file CFunction.cpp.
References mVariables.
|
virtual |
Function to retrieve the value of the indexed variable.
Note this function is only usable during calcValue, since the values of the call parameters are only defined during that time.
const | size_t & index |
Reimplemented from CEvaluationTree.
Definition at line 139 of file CFunction.cpp.
References mCallParametersBegin.
|
protected |
Function to initialize the parameters
Definition at line 219 of file CFunction.cpp.
References CFunctionParameters::add(), C_INVALID_INDEX, CFunctionParameters::findParameterByName(), CFunctionParameter::FLOAT64, CCopasiObject::getObjectName(), CEvaluationTree::mInfix, CEvaluationTree::mpNodeList, mVariables, CFunctionParameters::remove(), CFunctionParameters::size(), CEvaluationNode::type(), CEvaluationNode::VARIABLE, and CFunctionParameter::VARIABLE.
Referenced by setInfix(), and splitFunction().
const TriLogic & CFunction::isReversible | ( | ) | const |
Function to retrieve whether it is reversible.
Definition at line 145 of file CFunction.cpp.
References mReversible.
Referenced by CMassAction::calcValue(), CFunctionAnalyzer::checkKineticFunction(), CModelAnalyzer::checkReaction(), CSBMLExporter::createKineticExpression(), CSBMLExporter::createKineticLaw(), CMassAction::dependsOn(), CODEExporter::exportKineticFunction(), isSuitable(), CODEExporterC::KineticFunction2ODEmember(), FunctionWidget1::loadFromFunction(), CCopasiXML::saveFunctionList(), FunctionWidget1::saveToFunction(), CReaction::setFunctionFromExpressionTree(), CMassAction::setInfix(), and CMassAction::writeMathML().
bool CFunction::isSuitable | ( | const size_t | noSubstrates, |
const size_t | noProducts, | ||
const TriLogic | reversible | ||
) |
Function to determine whether it is suitable for a reaction with the given number of substrates and products and reversibility
Definition at line 254 of file CFunction.cpp.
References C_INVALID_INDEX, CFunctionParameters::getNumberOfParametersByUsage(), isReversible(), CFunctionParameters::isVector(), mVariables, CFunctionParameter::PRODUCT, CFunctionParameter::SUBSTRATE, TriTrue, TriUnspecified, and CFunctionParameter::VARIABLE.
Referenced by SBMLImporter::createCReactionFromReaction(), and CFunctionDB::suitableFunctions().
|
virtual |
Function to load an object with data coming from a CReadConfig object. (CReadConfig object reads an input stream)
CReadConfig & | configBuffer |
CReadConfig::Mode | mode (default: CReadConfig::SEARCH) |
Definition at line 182 of file CFunction.cpp.
References C_INT32, fatalError, CReadConfig::getVariable(), mReversible, CReadConfig::SEARCH, setInfix(), CCopasiObject::setObjectName(), CEvaluationTree::setType(), and CEvaluationTree::UserDefined.
Referenced by CFunctionDB::load().
bool CFunction::operator== | ( | const CFunction & | rhs | ) | const |
Comparison operator
const | CFunction & rhs |
Definition at line 119 of file CFunction.cpp.
References mVariables.
|
virtual |
Function to set the infix description of the tree and compile it.
const | std::string & infix |
Reimplemented from CEvaluationTree.
Reimplemented in CMassAction.
Definition at line 73 of file CFunction.cpp.
Referenced by CMathEventN::CTrigger::allocate(), FunctionWidget1::copyFunctionContentsToFunction(), CKinFunction::createParameters(), CCopasiXMLParser::FunctionElement::end(), SBMLImporter::importFunctionDefinitions(), CCopasiRootContainer::initializeChildren(), load(), CMassAction::setInfix(), FunctionWidget1::slotFcnDescriptionChanged(), test000058::test_bug1025_10(), test000058::test_bug1025_5(), test000059::test_unique_id_17(), test000059::test_unique_id_18(), test000059::test_unique_id_19(), test000059::test_unique_id_20(), test000059::test_unique_id_21(), and test000059::test_unique_id_21_2().
|
virtual |
Function to set the infix description of the tree and (optionally) compile it.
const | std::string & infix |
bool | compile, boolean indicating whether the expression ought to be compiled |
Definition at line 78 of file CFunction.cpp.
References CEvaluationNode::CALL, CEvaluationTree::compileNodes(), CEvaluationNode::DELAY, CEvaluationNodeCall::EXPRESSION, initVariables(), CEvaluationTree::mpNodeList, CEvaluationNode::OBJECT, CEvaluationTree::setInfix(), CEvaluationNode::subType(), and CEvaluationNode::type().
Function to set whether it is reversible.
Definition at line 142 of file CFunction.cpp.
References mReversible.
Referenced by SBMLImporter::createCReactionFromReaction(), FunctionWidget1::saveToFunction(), CReaction::setFunctionFromExpressionTree(), CMassAction::setInfix(), and CCopasiXMLParser::FunctionElement::start().
void CFunction::setSBMLId | ( | const std::string & | id | ) |
Sets the SBMLId.
Definition at line 63 of file CFunction.cpp.
References mSBMLId.
Referenced by SBMLImporter::createCFunctionFromFunctionDefinition(), SBMLImporter::createCModelFromSBMLDocument(), CSBMLExporter::setFunctionSBMLIds(), and CCopasiXMLParser::SBMLMapElement::start().
std::pair< CFunction *, CFunction * > CFunction::splitFunction | ( | const CEvaluationNode * | node, |
const std::string & | name1, | ||
const std::string & | name2 | ||
) | const |
Function to split
const | CEvaluationNode* node |
const | std::string & name1 |
const | std::string & name2 |
Definition at line 445 of file CFunction.cpp.
References CFunction(), CEvaluationTree::compile(), CFunctionAnalyzer::constructCallParameters(), CEvaluationNode::findTopMinus(), getVariables(), initVariables(), CFunctionParameter::MODIFIER, CEvaluationTree::mpRoot, mReversible, mVariables, CFunctionParameter::PRODUCT, CCopasiObject::setObjectName(), CEvaluationTree::setRoot(), CFunctionParameters::size(), CEvaluationNode::splitBranch(), CFunctionParameter::SUBSTRATE, TriFalse, and TriTrue.
Referenced by CFunctionAnalyzer::checkKineticFunction(), and CModel::convert2NonReversible().
|
virtual |
This is an overloaded member function, provided for convenience. It behaves essentially like the above function.
std::ostream | & out |
size_t | l |
Definition at line 389 of file CFunction.cpp.
References CMathMl::fixName(), CCopasiObject::getObjectName(), getVariables(), CFunctionParameters::size(), and SPC.
Referenced by CEvaluationNodeCall::getMMLString(), CQExpressionWidget::writeMathML(), and CMMLOutput::writeRHS().
|
virtual |
Function to write the mathematical formula in format of MathML.
std::ostream | & out |
const | std::vector< std::vector< std::string > > & variables |
bool | expand = true |
bool | fullExpand |
Reimplemented in CMassAction.
Definition at line 354 of file CFunction.cpp.
References CEvaluationNode::buildMMLString(), CMathMl::fixName(), CCopasiObject::getObjectName(), and CEvaluationTree::mpRoot.
|
friend |
Insert operator
Definition at line 410 of file CFunction.cpp.
|
private |
A pointer to the call parameters during calculation.
Definition at line 215 of file CFunction.h.
Referenced by calcValue(), and getVariableValue().
|
private |
Whether the function is reversible
Definition at line 220 of file CFunction.h.
Referenced by createCopy(), isReversible(), load(), operator<<(), setReversible(), and splitFunction().
|
private |
The id of the corresponding function in an SBML file. This value is either set upon importing an SBML file, or when the object is first exported to an SBML file.
Definition at line 203 of file CFunction.h.
Referenced by getSBMLId(), and setSBMLId().
|
private |
The description of the variables of the function. It describes which variables need to be passed to the function for evaluation and its eventual type.
Definition at line 210 of file CFunction.h.
Referenced by addVariable(), getVariableIndex(), getVariables(), initVariables(), isSuitable(), operator<<(), operator==(), and splitFunction().