COPASI API
4.16.103
|
#include <CEvaluationNode.h>
Classes | |
class | CPrecedence |
Public Types | |
enum | Type { INVALID = 0xFF000000, NUMBER = 0x01000000, CONSTANT = 0x02000000, OPERATOR = 0x03000000, OBJECT = 0x04000000, FUNCTION = 0x05000000, CALL = 0x06000000, STRUCTURE = 0x07000000, CHOICE = 0x08000000, VARIABLE = 0x09000000, WHITESPACE = 0x0a000000, LOGICAL = 0x0b000000, MV_FUNCTION = 0x0c000000, VECTOR = 0x0d000000, DELAY = 0x0e000000 } |
![]() | |
typedef std::string | Data |
Public Member Functions | |
void | addChildren (const std::vector< CEvaluationNode * > &children) |
std::string | buildBerkeleyMadonnaString () const |
std::string | buildCCodeString () const |
std::string | buildDisplayString () const |
std::string | buildInfix () const |
std::string | buildMMLString (bool expand, const std::vector< std::vector< std::string > > &variables) const |
std::string | buildXPPString () const |
virtual void | calculate () |
CEvaluationNode () | |
CEvaluationNode (const CEvaluationNode &src) | |
virtual bool | compile (const CEvaluationTree *pTree) |
CEvaluationNode * | copyBranch () const |
CEvaluationNode * | copyNode (CEvaluationNode *child1, CEvaluationNode *child2) const |
CEvaluationNode * | copyNode (const std::vector< CEvaluationNode * > &children) const |
const CEvaluationNode * | findTopMinus (const std::vector< CFunctionAnalyzer::CValue > &callParameters) const |
virtual std::string | getBerkeleyMadonnaString (const std::vector< std::string > &children) const |
virtual std::string | getCCodeString (const std::vector< std::string > &children) const |
virtual std::string | getDisplayString (const std::vector< std::string > &children) const |
virtual std::string | getInfix (const std::vector< std::string > &children) const |
virtual std::string | getMMLString (const std::vector< std::string > &children, bool expand, const std::vector< std::vector< std::string > > &variables) const |
const Type & | getType () const |
const C_FLOAT64 & | getValue () const |
const C_FLOAT64 * | getValuePointer () const |
virtual std::string | getXPPString (const std::vector< std::string > &children) const |
virtual bool | isBoolean () const |
virtual bool | operator!= (const CEvaluationNode &right) const |
bool | operator< (const CEvaluationNode &right) const |
bool | operator< (const CEvaluationNode &rhs) |
bool | operator== (const CEvaluationNode &right) const |
void | printRecursively (std::ostream &os, int indent=0) const |
void | printRecursively () const |
virtual CEvaluationNode * | simplifyNode (const std::vector< CEvaluationNode * > &children) const |
CEvaluationNode * | splitBranch (const CEvaluationNode *splitnode, bool left) const |
virtual ASTNode * | toAST (const CCopasiDataModel *pDataModel) const |
virtual | ~CEvaluationNode () |
![]() | |
virtual bool | addChild (CCopasiNode< Data > *pChild, CCopasiNode< Data > *pAfter=NULL) |
bool | addSibling (CCopasiNode< Data > *pSibling, CCopasiNode< Data > *pAfter=NULL) |
CCopasiNode (CCopasiNode< Data > *pParent=NULL) | |
CCopasiNode (const CCopasiNode< Data > &src) | |
CCopasiNode (const Data &data, CCopasiNode< Data > *pParent=NULL) | |
bool | deleteChildren () |
CCopasiNode< Data > * | getChild () |
const CCopasiNode< Data > * | getChild () const |
CCopasiNode< Data > * | getChild (const size_t &index) |
const CCopasiNode< Data > * | getChild (const size_t &index) const |
virtual const Data & | getData () const |
CCopasiNode< Data > * | getNext () |
const CCopasiNode< Data > * | getNext () const |
CCopasiNode< Data > * | getNextNonChild () |
const CCopasiNode< Data > * | getNextNonChild () const |
size_t | getNumChildren () const |
CCopasiNode< Data > * | getParent () |
const CCopasiNode< Data > * | getParent () const |
CCopasiNode< Data > * | getSibling () |
const CCopasiNode< Data > * | getSibling () const |
virtual bool | removeChild (CCopasiNode< Data > *pChild) |
virtual bool | setData (const Data &data) |
virtual | ~CCopasiNode () |
Static Public Member Functions | |
static CEvaluationNode * | create (const Type &type, const Data &data) |
static bool | isKeyword (const std::string &str) |
static Type | subType (const Type &type) |
static Type | type (const Type &type) |
Protected Member Functions | |
CEvaluationNode (const Type &type, const Data &data) | |
![]() | |
bool | setChild (CCopasiNode< Data > *pChild) |
bool | setParent (CCopasiNode< Data > *pParent) |
bool | setSibling (CCopasiNode< Data > *pSibling) |
Protected Attributes | |
class CEvaluationNode::CPrecedence | mPrecedence |
const C_FLOAT64 * | mpValue |
Type | mType |
C_FLOAT64 | mValue |
![]() | |
Data | mData |
Static Private Attributes | |
static const char * | Keywords [] |
This is the base class for nodes used in an evaluation trees
Definition at line 33 of file CEvaluationNode.h.
Enumeration of possible node types.
Enumerator | |
---|---|
INVALID | |
NUMBER | |
CONSTANT | |
OPERATOR | |
OBJECT | |
FUNCTION | |
CALL | |
STRUCTURE | |
CHOICE | |
VARIABLE | |
WHITESPACE | |
LOGICAL | |
MV_FUNCTION | |
VECTOR | |
DELAY |
Definition at line 39 of file CEvaluationNode.h.
CEvaluationNode::CEvaluationNode | ( | ) |
Default constructor
Definition at line 183 of file CEvaluationNode.cpp.
References mpValue, and mValue.
Referenced by create().
Specific constructor
const | Type & type |
const | Data & data |
Definition at line 193 of file CEvaluationNode.cpp.
References mpValue, and mValue.
CEvaluationNode::CEvaluationNode | ( | const CEvaluationNode & | src | ) |
Copy constructor
const | CEvaluationNode & src |
Definition at line 204 of file CEvaluationNode.cpp.
References mpValue, and mValue.
|
virtual |
void CEvaluationNode::addChildren | ( | const std::vector< CEvaluationNode * > & | children | ) |
Add the children to the node
const | std::vector< CEvaluationNode * > & children |
Definition at line 364 of file CEvaluationNode.cpp.
References CCopasiNode< std::string >::addChild().
Referenced by CEvaluationNodeCall::fromAST().
std::string CEvaluationNode::buildBerkeleyMadonnaString | ( | ) | const |
Build the Berkeley Madonna string.
Definition at line 307 of file CEvaluationNode.cpp.
References CNodeContextIterator< Node, Context >::context(), CNodeContextIterator< Node, Context >::end(), getBerkeleyMadonnaString(), CNodeContextIterator< Node, Context >::next(), and CNodeContextIterator< Node, Context >::parentContextPtr().
Referenced by CExpression::getBerkeleyMadonnaString(), CODEExporterBM::getDisplayExpressionString(), and CODEExporterBM::getDisplayFunctionString().
std::string CEvaluationNode::buildCCodeString | ( | ) | const |
Build the C-code string.
Build the C-code string.
Definition at line 280 of file CEvaluationNode.cpp.
References CNodeContextIterator< Node, Context >::context(), CNodeContextIterator< Node, Context >::end(), getCCodeString(), CNodeContextIterator< Node, Context >::next(), and CNodeContextIterator< Node, Context >::parentContextPtr().
Referenced by CODEExporterC::exportSingleFunction(), CExpression::getCCodeString(), and CODEExporterC::getDisplayExpressionString().
std::string CEvaluationNode::buildDisplayString | ( | ) | const |
Build the human readable display string.
Definition at line 250 of file CEvaluationNode.cpp.
References CNodeContextIterator< Node, Context >::context(), CNodeContextIterator< Node, Context >::end(), getDisplayString(), CNodeContextIterator< Node, Context >::next(), and CNodeContextIterator< Node, Context >::parentContextPtr().
Referenced by CExpression::compile().
std::string CEvaluationNode::buildInfix | ( | ) | const |
Build the infix string.
Definition at line 223 of file CEvaluationNode.cpp.
References CNodeContextIterator< Node, Context >::context(), CNodeContextIterator< Node, Context >::end(), getInfix(), CNodeContextIterator< Node, Context >::next(), and CNodeContextIterator< Node, Context >::parentContextPtr().
Referenced by CExpression::compile(), CMathExpression::convertToInitialExpression(), createItem(), CKinFunction::createParameters(), CNormalTranslation::eliminate(), CNormalTranslation::matchPowerBases(), CNormalTranslation::matchSummands(), CNormalTranslation::normAndSimplifyReptdly(), operator<<(), CMathContainer::replaceDiscontinuousNode(), CNormalTranslation::simplify(), CEvaluationNodeOperator::simplifyNode(), CNormalTranslation::simplifyTreeReptdly(), CExpression::updateInfix(), and CEvaluationTree::updateTree().
std::string CEvaluationNode::buildMMLString | ( | bool | expand, |
const std::vector< std::vector< std::string > > & | variables | ||
) | const |
Build the MathML string
bool | expand = true |
const | std::vector< std::vector< std::string > > & variables |
Definition at line 452 of file CEvaluationNode.cpp.
References CNodeContextIterator< Node, Context >::context(), CNodeContextIterator< Node, Context >::end(), getMMLString(), CNodeContextIterator< Node, Context >::next(), and CNodeContextIterator< Node, Context >::parentContextPtr().
Referenced by CExpression::writeMathML(), and CFunction::writeMathML().
std::string CEvaluationNode::buildXPPString | ( | ) | const |
Build the XPPAUT string.
Definition at line 334 of file CEvaluationNode.cpp.
References CNodeContextIterator< Node, Context >::context(), CNodeContextIterator< Node, Context >::end(), getXPPString(), CNodeContextIterator< Node, Context >::next(), and CNodeContextIterator< Node, Context >::parentContextPtr().
Referenced by CODEExporterXPPAUT::getDisplayExpressionString(), CODEExporterXPPAUT::getDisplayFunctionString(), and CExpression::getXPPString().
Calculate the numerical result of the node. It is assumed that all child nodes are up to date.
Reimplemented in CEvaluationNodeFunction, CEvaluationNodeLogical, CEvaluationNodeVariable, CEvaluationNodeOperator, CEvaluationNodeChoice, and CEvaluationNodeCall.
Definition at line 150 of file CEvaluationNode.h.
|
virtual |
Compile a node;
const | CEvaluationTree * pTree |
Reimplemented in CEvaluationNodeFunction, CEvaluationNodeLogical, CEvaluationNodeDelay, CEvaluationNodeOperator, CEvaluationNodeObject, CEvaluationNodeChoice, CEvaluationNodeCall, and CEvaluationNodeVariable.
Definition at line 216 of file CEvaluationNode.cpp.
Referenced by CEvaluationTree::compileNodes(), CDerive::compileTree(), convertToCEvaluationNode(), and CEvaluationNodeDelay::fromAST().
CEvaluationNode * CEvaluationNode::copyBranch | ( | ) | const |
Copy the whole branch with this node as root.
Definition at line 404 of file CEvaluationNode.cpp.
References CNodeContextIterator< Node, Context >::context(), copyNode(), CNodeContextIterator< Node, Context >::end(), CNodeContextIterator< Node, Context >::next(), and CNodeContextIterator< Node, Context >::parentContextPtr().
Referenced by CODEExporter::assembleSubTreeForMassAction(), CMathTrigger::compileNE(), convertToCEvaluationNode(), CMathExpression::copy(), CMathTrigger::copyBranch(), CNormalTranslation::createChain(), CFunction::createCopy(), SBMLImporter::createCReactionFromReaction(), createLogical(), createNormalRepresentation(), CNormalTranslation::createOperatorChain(), createProduct(), CDerive::deriveBranch(), SBMLImporter::divideByObject(), CNormalTranslation::elementaryEliminationDivide(), CNormalTranslation::elementaryEliminationFunction(), CNormalTranslation::elementaryEliminationMinus(), CNormalTranslation::elementaryEliminationMultiply(), CNormalTranslation::elementaryEliminationPlus(), CNormalTranslation::elementaryEliminationPower(), CNormalTranslation::eliminate(), CNormalTranslation::eliminateDirectlyNestedFractions(), CNormalTranslation::eliminateNestedPowers(), CNormalTranslation::eliminatePowersOfFractions(), expand_function_call(), CNormalTranslation::expandPowerBases(), CNormalTranslation::expandPowerNodes(), CODEExporter::exportSingleFunction(), CEvaluationNodeNormalizer::findChainNodes(), CNormalTranslation::findNegativeNumbers(), SBMLImporter::isMassActionExpression(), CNormalTranslation::matchPowerBases(), CNormalTranslation::matchSummands(), CSBMLExporter::multiplyByObject(), CNormalTranslation::newCancel(), CNormalTranslation::newEvaluateNumbers(), CEvaluationNodeNormalizer::normalize(), CEvaluationNodeNormalizer::normalizeCEvaluationNodeCall(), CEvaluationNodeNormalizer::normalizeCEvaluationNodeChoice(), CEvaluationNodeNormalizer::normalizeCEvaluationNodeConstant(), CEvaluationNodeNormalizer::normalizeCEvaluationNodeDelay(), CEvaluationNodeNormalizer::normalizeCEvaluationNodeFunction(), CEvaluationNodeNormalizer::normalizeCEvaluationNodeLogical(), CEvaluationNodeNormalizer::normalizeCEvaluationNodeNumber(), CEvaluationNodeNormalizer::normalizeCEvaluationNodeObject(), CEvaluationNodeNormalizer::normalizeCEvaluationNodeOperator(), CEvaluationNodeNormalizer::normalizeCEvaluationNodeStructure(), CEvaluationNodeNormalizer::normalizeCEvaluationNodeVariable(), CEvaluationNodeNormalizer::normalizeCEvaluationNodeVector(), CEvaluationNodeNormalizer::normalizeCEvaluationNodeWhiteSpace(), CEvaluationNodeNormalizer::normalizeDivideNode(), CEvaluationNodeNormalizer::normalizeMinusNode(), CEvaluationNodeNormalizer::normalizeModulusNode(), CEvaluationNodeNormalizer::normalizeMultiplyNode(), CEvaluationNodeNormalizer::normalizePlusNode(), CEvaluationNodeNormalizer::normalizePowerNode(), CNormalTranslation::product2fraction(), CSBMLExporter::replaceSpeciesReferences(), CReaction::setFunctionFromExpressionTree(), CNormalTranslation::simplify(), CEvaluationNodeOperator::simplifyNode(), CEvaluationNodeFunction::simplifyNode(), splitBranch(), and CNormalTranslation::splitSum().
CEvaluationNode * CEvaluationNode::copyNode | ( | CEvaluationNode * | child1, |
CEvaluationNode * | child2 | ||
) | const |
Copy a node and assign new children child1 and child2
Definition at line 378 of file CEvaluationNode.cpp.
Referenced by CMathEventN::CTrigger::compile(), CMathContainer::copyBranch(), copyBranch(), CNormalTranslation::eliminateDirectlyNestedFractions(), CNormalTranslation::eliminateNestedPowers(), CNormalTranslation::eliminatePowersOfFractions(), expand_function_calls(), CNormalTranslation::expandPowerBases(), CNormalTranslation::expandPowerNodes(), CNormalTranslation::expandProducts(), CNormalTranslation::findNegativeNumbers(), CReaction::objects2variables(), CNormalTranslation::product2fraction(), replace_variable_names(), CMathContainer::replaceDiscontinuousNode(), CSBMLExporter::replaceSpeciesReferences(), CEvaluationNodeOperator::simplifyNode(), CEvaluationNodeFunction::simplifyNode(), simplifyNode(), and splitBranch().
CEvaluationNode * CEvaluationNode::copyNode | ( | const std::vector< CEvaluationNode * > & | children | ) | const |
Copy a node and assign new children in the vector
Definition at line 389 of file CEvaluationNode.cpp.
References CCopasiNode< _Data >::addChild(), create(), CCopasiNode< std::string >::getData(), and mType.
|
static |
Creates an evaluation node of type with the given data
const | Type & type |
const | Data & data |
Definition at line 37 of file CEvaluationNode.cpp.
References CALL, CEvaluationNode(), CHOICE, CONSTANT, DELAY, FUNCTION, INVALID, LOGICAL, MV_FUNCTION, NUMBER, OBJECT, OPERATOR, STRUCTURE, subType(), type(), VARIABLE, VECTOR, and WHITESPACE.
Referenced by CODEExporter::assembleSubTreeForMassAction(), CEvaluationNodeNormalizer::collectIdenticalBranches(), copyNode(), CNormalTranslation::expandPowerExponents(), CODEExporter::modifyTreeForMassAction(), CEvaluationNodeNormalizer::normalizeCEvaluationNodeCall(), CEvaluationNodeOperator::simplifyNode(), CEvaluationNodeFunction::simplifyNode(), and SBMLImporter::variables2objects().
const CEvaluationNode * CEvaluationNode::findTopMinus | ( | const std::vector< CFunctionAnalyzer::CValue > & | callParameters | ) | const |
Find a minus operator in the tree that is suitable for splitting with splitBranch(). Specifically it is a minus operator that is connected with the root node by multiplication or division nodes only. For the division nodes only the left child is considered.
Definition at line 566 of file CEvaluationNode.cpp.
References CNodeIteratorMode::After, CNodeIteratorMode::Before, CNodeContextIterator< Node, Context >::context(), CEvaluationNodeOperator::DIVIDE, CNodeContextIterator< Node, Context >::end(), CFunctionAnalyzer::evaluateNode(), CCopasiNode< _Data >::getChild(), CCopasiNode< _Data >::getData(), getType(), CFunctionAnalyzer::CValue::isPositive(), CEvaluationNodeOperator::MINUS, CEvaluationNodeOperator::MULTIPLY, CNodeContextIterator< Node, Context >::next(), CFunctionAnalyzer::NOOBJECT, OPERATOR, CNodeContextIterator< Node, Context >::parentContextPtr(), CNodeContextIterator< Node, Context >::processingMode(), CNodeContextIterator< Node, Context >::setProcessingModes(), and CNodeContextIterator< Node, Context >::skipChildren().
Referenced by CFunction::splitFunction().
|
virtual |
Retrieve the display string of the node and its eventual child nodes in Berkeley Madonna format.
Reimplemented in CEvaluationNodeFunction, CEvaluationNodeLogical, CEvaluationNodeOperator, CEvaluationNodeCall, CEvaluationNodeObject, CEvaluationNodeChoice, CEvaluationNodeConstant, CEvaluationNodeVector, and CEvaluationNodeDelay.
Definition at line 304 of file CEvaluationNode.cpp.
References CCopasiNode< std::string >::mData.
Referenced by buildBerkeleyMadonnaString().
|
virtual |
Retrieve the display string of the node and its eventual child nodes in C.
Reimplemented in CEvaluationNodeFunction, CEvaluationNodeLogical, CEvaluationNodeOperator, CEvaluationNodeCall, CEvaluationNodeObject, CEvaluationNodeChoice, CEvaluationNodeNumber, CEvaluationNodeConstant, CEvaluationNodeVector, and CEvaluationNodeDelay.
Definition at line 274 of file CEvaluationNode.cpp.
References CCopasiNode< std::string >::mData.
Referenced by buildCCodeString().
|
virtual |
Retrieve the display string of the node and its eventual child nodes.
Reimplemented in CEvaluationNodeFunction, CEvaluationNodeLogical, CEvaluationNodeOperator, CEvaluationNodeCall, CEvaluationNodeObject, CEvaluationNodeChoice, CEvaluationNodeVector, and CEvaluationNodeDelay.
Definition at line 247 of file CEvaluationNode.cpp.
References CCopasiNode< std::string >::mData.
Referenced by buildDisplayString().
|
virtual |
Retrieve the infix value of the node and its eventual child nodes.
Reimplemented in CEvaluationNodeFunction, CEvaluationNodeLogical, CEvaluationNodeDelay, CEvaluationNodeOperator, CEvaluationNodeObject, CEvaluationNodeCall, CEvaluationNodeChoice, and CEvaluationNodeVector.
Definition at line 220 of file CEvaluationNode.cpp.
References CCopasiNode< std::string >::mData.
Referenced by buildInfix().
|
virtual |
Build the MathML string
const | std::vector< std::string > & children |
bool | expand = true |
const | std::vector< std::vector< std::string > > & variables |
Reimplemented in CEvaluationNodeFunction, CEvaluationNodeLogical, CEvaluationNodeOperator, CEvaluationNodeCall, CEvaluationNodeObject, CEvaluationNodeChoice, CEvaluationNodeConstant, CEvaluationNodeDelay, CEvaluationNodeVariable, and CEvaluationNodeNumber.
Definition at line 445 of file CEvaluationNode.cpp.
Referenced by buildMMLString().
const CEvaluationNode::Type & CEvaluationNode::getType | ( | ) | const |
Retrieve the type of the node. Note the type combines type and subType information. To Retrieve the type use type(getType()) and to retrieve the subType use subType(getType()).
Definition at line 357 of file CEvaluationNode.cpp.
References mType.
Referenced by SBMLImporter::areEqualSubtrees(), CODEExporter::assembleSubTreeForMassAction(), CEvaluationTree::buildCalculationSequence(), CSBMLExporter::checkForPiecewiseFunctions(), CSBMLExporter::checkForUnsupportedFunctionCalls(), CEvaluationNodeNormalizer::collectIdenticalBranches(), CMathEventN::CTrigger::compile(), CMathTrigger::compile(), CMathEventN::CTrigger::compileAND(), CMathTrigger::compileEQ(), CMathEventN::CTrigger::compileLE(), CMathTrigger::copyBranch(), CMathContainer::copyBranch(), CMathEventN::CTrigger::countRoots(), createCall(), createChoice(), SBMLImporter::createCReactionFromReaction(), CMathContainer::createDiscontinuityTriggerInfix(), CSBMLExporter::createEvent(), createFunction(), createGeneralPower(), CSBMLExporter::createInitialAssignment(), createItem(), createItemPower(), createItemPowerItem(), createLogical(), createLogicalChoice(), createLogicalItem(), CEvaluationNodeOperator::createModuloTree(), createNormalRepresentation(), createProduct(), CSBMLExporter::createRule(), createSum(), CDerive::deriveBranch(), SBMLImporter::divideByObject(), CNormalTranslation::elementaryElimination(), CNormalTranslation::elementaryEliminationDivide(), CNormalTranslation::elementaryEliminationFunction(), CNormalTranslation::elementaryEliminationMinus(), CNormalTranslation::elementaryEliminationModulus(), CNormalTranslation::elementaryEliminationMultiply(), CNormalTranslation::elementaryEliminationPlus(), CNormalTranslation::elementaryEliminationPower(), CNormalTranslation::eliminateDirectlyNestedFractions(), CNormalTranslation::eliminateNestedPowers(), CNormalTranslation::eliminatePowersOfFractions(), CFunctionAnalyzer::evaluateNode(), CNormalTranslation::expandPowerBases(), CNormalTranslation::expandPowerExponents(), CNormalTranslation::expandPowerNodes(), CNormalTranslation::expandProducts(), CSBMLExporter::exportEventAssignments(), CNormalTranslation::factorize(), CEvaluationNodeNormalizer::findChainNodes(), CFindDimensions::findDimension(), CSBMLExporter::findDirectlyUsedFunctions(), CSBMLExporter::findModelEntityDependencies(), CNormalTranslation::findNegativeNumbers(), CNormalTranslation::findSummands(), findTopMinus(), CEvaluationNodeConstant::getBerkeleyMadonnaString(), CEvaluationNodeLogical::getBerkeleyMadonnaString(), CEvaluationNodeFunction::getBerkeleyMadonnaString(), CEvaluationNodeConstant::getCCodeString(), CEvaluationNodeOperator::getCCodeString(), CEvaluationNodeLogical::getCCodeString(), CEvaluationNodeFunction::getCCodeString(), CEvaluationNodeConstant::getMMLString(), CEvaluationNodeOperator::getMMLString(), CEvaluationNodeLogical::getMMLString(), CEvaluationNodeFunction::getMMLString(), CEvaluationNodeConstant::getXPPString(), CEvaluationNodeOperator::getXPPString(), CEvaluationNodeLogical::getXPPString(), CEvaluationNodeFunction::getXPPString(), CEvaluationNodeFunction::handleNot(), CEvaluationNodeFunction::handleSign(), SBMLImporter::isConstantFlux(), CSBMLExporter::isEventAssignmentSBMLCompatible(), isLogical(), SBMLImporter::isMassAction(), SBMLImporter::isMassActionExpression(), CMathObject::isPrerequisiteForContext(), CNormalTranslation::matchPowerBases(), CNormalTranslation::matchSummands(), CSBMLExporter::multiplyByObject(), CNormalTranslation::newCancel(), CNormalTranslation::newEvaluateNumbers(), CEvaluationNodeNormalizer::normalize(), CEvaluationNodeNormalizer::normalizeCEvaluationNodeCall(), CEvaluationNodeNormalizer::normalizeCEvaluationNodeChoice(), CEvaluationNodeNormalizer::normalizeCEvaluationNodeDelay(), CEvaluationNodeNormalizer::normalizeCEvaluationNodeFunction(), CEvaluationNodeNormalizer::normalizeCEvaluationNodeLogical(), CEvaluationNodeNormalizer::normalizeCEvaluationNodeOperator(), CEvaluationNodeNormalizer::normalizeCEvaluationNodeVector(), CEvaluationNodeNormalizer::normalizeDivideNode(), CEvaluationNodeNormalizer::normalizeMinusNode(), CEvaluationNodeNormalizer::normalizeModulusNode(), CEvaluationNodeNormalizer::normalizeMultiplyNode(), CEvaluationNodeNormalizer::normalizePlusNode(), CEvaluationNodeNormalizer::normalizePowerNode(), CReaction::objects2variables(), operator<(), operator==(), CNormalTranslation::product2fraction(), CSBMLExporter::replaceSpeciesReferences(), SBMLImporter::separateProductArguments(), setBooleanRequired(), CSBMLExporter::setFunctionSBMLIds(), CEvaluationNodeOperator::simplifyNode(), CNormalTranslation::splitProduct(), CNormalTranslation::splitSum(), CNormalTranslation::swapNegativeNumbers(), test000053::test1_bug1000(), test000053::test2_bug1000(), test000053::test3_bug1000(), test000053::test4_bug1000(), test000053::test5_bug1000(), test000093::test_bug1503_1(), test000093::test_bug1503_2(), test000052::test_bug988(), test_compare_utilities::test_copasi_function_expansion(), test000091::test_delay_in_kinetic_law(), test000091::test_delay_in_kinetic_law_local_parameter(), test_depth_first_iterator::test_dfi(), test000042::test_hasOnlySubstanceUnits(), test000026::test_hasOnlySubstanceUnits(), test000040::test_hasOnlySubstanceUnits(), test000023::test_hasOnlySubstanceUnits(), test000043::test_hasOnlySubstanceUnits(), test000025::test_hasOnlySubstanceUnits(), test000033::test_hasOnlySubstanceUnits(), test000082::test_import_delayAssignment_1(), test000082::test_import_delayAssignment_2(), test000082::test_import_delayAssignment_3(), test000082::test_import_delayAssignment_4(), test000082::test_import_delayAssignment_5(), test000082::test_import_delayAssignment_6(), test000082::test_import_delayAssignment_7(), test000082::test_import_delayAssignment_8(), test000064::test_import_event_assignment_expression_and_hasOnlySubstanceUnits_1(), test000064::test_import_event_assignment_expression_and_hasOnlySubstanceUnits_2(), test000064::test_import_event_assignment_expression_and_hasOnlySubstanceUnits_3(), test000064::test_import_event_assignment_expression_and_hasOnlySubstanceUnits_4(), test000064::test_import_event_assignment_expression_and_hasOnlySubstanceUnits_5(), test000064::test_import_event_assignment_expression_and_hasOnlySubstanceUnits_6(), test000064::test_import_event_assignment_expression_and_hasOnlySubstanceUnits_7(), test000064::test_import_event_assignment_expression_and_hasOnlySubstanceUnits_8(), test000095::test_import_l3_event_1(), test000095::test_import_l3_event_2(), test000095::test_import_l3_event_3(), test000095::test_import_l3_event_4(), test000095::test_import_l3_event_5(), test000087::test_import_reaction_flux_reference_2(), test000065::test_import_reaction_with_unsuitable_kinetic_1(), test000065::test_import_reaction_with_unsuitable_kinetic_2(), test000064::test_import_rule_expression_and_hasOnlySubstanceUnits_1(), test000064::test_import_rule_expression_and_hasOnlySubstanceUnits_2(), test000064::test_import_rule_expression_and_hasOnlySubstanceUnits_3(), test000064::test_import_rule_expression_and_hasOnlySubstanceUnits_4(), test000064::test_import_rule_expression_and_hasOnlySubstanceUnits_5(), test000064::test_import_rule_expression_and_hasOnlySubstanceUnits_6(), test000064::test_import_rule_expression_and_hasOnlySubstanceUnits_7(), test000064::test_import_rule_expression_and_hasOnlySubstanceUnits_8(), test000075::test_import_time_dependent_function_definition(), test000078::test_l2v4_import_unordered_functions(), test000087::test_simulate_reaction_flux_reference_1(), CEvaluationNodeNumber::toAST(), CEvaluationNodeConstant::toAST(), CEvaluationNodeOperator::toAST(), CEvaluationNodeLogical::toAST(), CEvaluationNodeFunction::toAST(), SBMLImporter::variables2objects(), CReaction::variables2objects(), and CEvaluationNodeCall::verifyParameters().
|
inline |
Retrieve the value of the node
Definition at line 144 of file CEvaluationNode.h.
References mpValue.
Referenced by CEvaluationNodeChoice::calculate(), CEvaluationNodeOperator::calculate(), CEvaluationNodeLogical::calculate(), CEvaluationNodeFunction::calculate(), CEvaluationTree::calculate(), createProduct(), CNormalTranslation::elementaryEliminationModulus(), CNormalTranslation::elementaryEliminationPower(), CEvaluationNodeNormalizer::eliminateMultipleNumbers(), CFunctionAnalyzer::evaluateNode(), CFindDimensions::findDimension(), CNormalTranslation::findNegativeNumbers(), CEvaluationNodeNumber::getCCodeString(), SBMLImporter::isMassActionExpression(), CNormalTranslation::matchPowerBases(), CNormalTranslation::matchSummands(), CNormalTranslation::newEvaluateNumbers(), CEvaluationNodeNormalizer::normalizeDivideNode(), CEvaluationNodeNormalizer::normalizeMinusNode(), CEvaluationNodeNormalizer::normalizeModulusNode(), CEvaluationNodeNormalizer::normalizeMultiplyNode(), CEvaluationNodeNormalizer::normalizePlusNode(), CEvaluationNodeNormalizer::normalizePowerNode(), CEvaluationNodeOperator::simplifyNode(), CNormalTranslation::splitSum(), CNormalTranslation::swapNegativeNumbers(), test000093::test_bug1503_1(), test000093::test_bug1503_2(), test_depth_first_iterator::test_dfi(), test000082::test_import_delayAssignment_1(), test000082::test_import_delayAssignment_2(), test000082::test_import_delayAssignment_3(), test000082::test_import_delayAssignment_4(), test000082::test_import_delayAssignment_5(), test000082::test_import_delayAssignment_6(), test000082::test_import_delayAssignment_7(), test000082::test_import_delayAssignment_8(), test000064::test_import_event_assignment_expression_and_hasOnlySubstanceUnits_1(), test000064::test_import_event_assignment_expression_and_hasOnlySubstanceUnits_2(), test000064::test_import_event_assignment_expression_and_hasOnlySubstanceUnits_3(), test000064::test_import_event_assignment_expression_and_hasOnlySubstanceUnits_4(), test000064::test_import_event_assignment_expression_and_hasOnlySubstanceUnits_5(), test000064::test_import_event_assignment_expression_and_hasOnlySubstanceUnits_6(), test000064::test_import_event_assignment_expression_and_hasOnlySubstanceUnits_7(), test000064::test_import_event_assignment_expression_and_hasOnlySubstanceUnits_8(), test000095::test_import_l3_event_1(), test000095::test_import_l3_event_2(), test000095::test_import_l3_event_3(), test000095::test_import_l3_event_4(), test000095::test_import_l3_event_5(), test000078::test_l2v4_import_unordered_functions(), and CEvaluationNodeNumber::toAST().
const C_FLOAT64 * CEvaluationNode::getValuePointer | ( | ) | const |
Retrieve the pointer to the value of the node
Definition at line 441 of file CEvaluationNode.cpp.
References mpValue.
|
virtual |
Retrieve the display string of the node and its eventual child nodes in XPPAUT format.
Reimplemented in CEvaluationNodeFunction, CEvaluationNodeLogical, CEvaluationNodeOperator, CEvaluationNodeCall, CEvaluationNodeObject, CEvaluationNodeChoice, CEvaluationNodeConstant, CEvaluationNodeVector, and CEvaluationNodeDelay.
Definition at line 331 of file CEvaluationNode.cpp.
References CCopasiNode< std::string >::mData.
Referenced by buildXPPString().
|
virtual |
Check whether the result is Boolean
Reimplemented in CEvaluationNodeCall, CEvaluationNodeFunction, CEvaluationNodeLogical, and CEvaluationNodeConstant.
Definition at line 361 of file CEvaluationNode.cpp.
Referenced by CMathEventN::CTrigger::compile(), CMathTrigger::compile(), CMathTrigger::compileEXPRESSION(), CMathTrigger::compileFUNCTION(), CMathTrigger::compileVARIABLE(), CMathEventN::CTrigger::countRoots(), CEvaluationTree::isBoolean(), and CExpression::setInfix().
|
static |
Check whether the string is a keyword
const | std::string & str |
Definition at line 173 of file CEvaluationNode.cpp.
References Keywords.
Referenced by CEvaluationNodeCall::CEvaluationNodeCall(), CEvaluationNodeCall::getData(), and CEvaluationNodeCall::setData().
|
virtual |
Unequal operator, compares two CEvaluationNode objects and return true if they are equal.
Definition at line 666 of file CEvaluationNode.cpp.
bool CEvaluationNode::operator< | ( | const CEvaluationNode & | right | ) | const |
Less operator, compares two CEvaluationNode objects and return true if the first operand is smaller than the second.
Definition at line 699 of file CEvaluationNode.cpp.
References CALL, CHOICE, CONSTANT, DELAY, FUNCTION, CCopasiNode< std::string >::getChild(), CCopasiNode< _Data >::getChild(), CCopasiNode< std::string >::getData(), CCopasiNode< _Data >::getData(), CCopasiNode< _Data >::getSibling(), getType(), INVALID, LOGICAL, MV_FUNCTION, NUMBER, OBJECT, OPERATOR, STRUCTURE, type(), VARIABLE, VECTOR, and WHITESPACE.
bool CEvaluationNode::operator< | ( | const CEvaluationNode & | rhs | ) |
Comparison operator used to evaluate the precedence of the node. it compares the right precedence of the left node with the left precedence of the right node.
const | CEvaluationNode & rhs; |
Definition at line 375 of file CEvaluationNode.cpp.
References CEvaluationNode::CPrecedence::left, mPrecedence, and CEvaluationNode::CPrecedence::right.
bool CEvaluationNode::operator== | ( | const CEvaluationNode & | right | ) | const |
Equals operator, compares two CEvaluationNode objects and return true if they are equal.
Definition at line 671 of file CEvaluationNode.cpp.
References CNodeContextIterator< Node, int >::end(), CCopasiNode< _Data >::getData(), getType(), and CNodeContextIterator< Node, int >::next().
void CEvaluationNode::printRecursively | ( | std::ostream & | os, |
int | indent = 0 |
||
) | const |
Definition at line 477 of file CEvaluationNode.cpp.
References CCopasiNode< std::string >::getChild(), CCopasiNode< _Data >::getSibling(), CCopasiNode< std::string >::mData, mType, mValue, printRecursively(), subType(), and type().
Referenced by stress_test::normalizeFunctionDB().
void CEvaluationNode::printRecursively | ( | ) | const |
|
virtual |
Create a simplified node from the original node with children child1 and child2 (if not exist, = NULL)
Reimplemented in CEvaluationNodeFunction, and CEvaluationNodeOperator.
Definition at line 430 of file CEvaluationNode.cpp.
References copyNode().
Referenced by CEvaluationNodeOperator::simplifyNode(), and CNormalTranslation::simplifyTree().
CEvaluationNode * CEvaluationNode::splitBranch | ( | const CEvaluationNode * | splitnode, |
bool | left | ||
) | const |
Split the tree in two parts at the given splitnode, starting from *this. Returned is the root node of a copy of the tree, including everything above the split node and either the branch below the left child of the split node or the branch below the right child of the split node. The split node itself is not included either case.
Definition at line 511 of file CEvaluationNode.cpp.
References copyBranch(), copyNode(), CCopasiNode< std::string >::getChild(), CCopasiNode< _Data >::getSibling(), and splitBranch().
Referenced by splitBranch(), and CFunction::splitFunction().
|
static |
Retrieve the subtype part of type
const | Type & type |
Definition at line 120 of file CEvaluationNode.cpp.
Referenced by CSBMLExporter::checkForUnsupportedFunctionCalls(), CEvaluationNodeObject::compile(), CMathTrigger::compile(), CMathEventN::CTrigger::compileAND(), CMathEventN::CTrigger::compileLE(), CMathEventN::CTrigger::countRoots(), create(), createCall(), createFunction(), createGeneralPower(), createItemPower(), createItemPowerItem(), createLogical(), createLogicalItem(), CEvaluationNodeOperator::createModuloTree(), createProduct(), createSum(), CDerive::deriveBranch(), SBMLImporter::divideByObject(), CNormalTranslation::elementaryElimination(), CNormalTranslation::elementaryEliminationDivide(), CNormalTranslation::elementaryEliminationFunction(), CNormalTranslation::elementaryEliminationMinus(), CNormalTranslation::elementaryEliminationModulus(), CNormalTranslation::elementaryEliminationMultiply(), CNormalTranslation::elementaryEliminationPlus(), CNormalTranslation::elementaryEliminationPower(), CNormalTranslation::eliminateDirectlyNestedFractions(), CNormalTranslation::eliminateNestedPowers(), CNormalTranslation::eliminatePowersOfFractions(), CFunctionAnalyzer::evaluateNode(), CNormalTranslation::expandPowerBases(), CNormalTranslation::expandPowerExponents(), CNormalTranslation::expandPowerNodes(), CNormalTranslation::expandProducts(), CNormalTranslation::factorize(), CEvaluationNodeNormalizer::findChainNodes(), CNormalTranslation::findNegativeNumbers(), CNormalTranslation::findSummands(), CEvaluationNodeNumber::fromAST(), CEvaluationNodeDelay::fromAST(), CEvaluationNodeConstant::fromAST(), CEvaluationNodeChoice::fromAST(), CEvaluationNodeCall::fromAST(), CEvaluationNodeOperator::fromAST(), CEvaluationNodeLogical::fromAST(), CEvaluationNodeFunction::fromAST(), CEvaluationNodeConstant::getBerkeleyMadonnaString(), CEvaluationNodeLogical::getBerkeleyMadonnaString(), CEvaluationNodeFunction::getBerkeleyMadonnaString(), CEvaluationNodeConstant::getCCodeString(), CEvaluationNodeOperator::getCCodeString(), CEvaluationNodeLogical::getCCodeString(), CEvaluationNodeFunction::getCCodeString(), CEvaluationNodeObject::getData(), CEvaluationNodeObject::getInfix(), CEvaluationNodeConstant::getMMLString(), CEvaluationNodeLogical::getMMLString(), CEvaluationNodeConstant::getXPPString(), CEvaluationNodeOperator::getXPPString(), CEvaluationNodeLogical::getXPPString(), CEvaluationNodeFunction::getXPPString(), CEvaluationNodeConstant::isBoolean(), CEvaluationNodeFunction::isBoolean(), isLogical(), SBMLImporter::isMassActionExpression(), CNormalTranslation::matchPowerBases(), CNormalTranslation::matchSummands(), CSBMLExporter::multiplyByObject(), CNormalTranslation::newCancel(), CNormalTranslation::newEvaluateNumbers(), CEvaluationNodeNormalizer::normalizeCEvaluationNodeCall(), CEvaluationNodeNormalizer::normalizeCEvaluationNodeDelay(), CEvaluationNodeNormalizer::normalizeCEvaluationNodeFunction(), CEvaluationNodeNormalizer::normalizeCEvaluationNodeLogical(), CEvaluationNodeNormalizer::normalizeCEvaluationNodeOperator(), CEvaluationNodeNormalizer::normalizeCEvaluationNodeVector(), CEvaluationNodeNormalizer::normalizeModulusNode(), CEvaluationNodeNormalizer::normalizeMultiplyNode(), CEvaluationNodeNormalizer::normalizePlusNode(), printRecursively(), CNormalTranslation::product2fraction(), CSBMLExporter::replaceSpeciesReferences(), SBMLImporter::separateProductArguments(), CEvaluationNodeObject::setData(), CFunction::setInfix(), CEvaluationNodeObject::setObjectValuePtr(), CEvaluationNodeOperator::simplifyNode(), CEvaluationNodeFunction::simplifyNode(), CNormalTranslation::splitProduct(), CNormalTranslation::splitSum(), CNormalTranslation::swapNegativeNumbers(), test000053::test1_bug1000(), test000053::test2_bug1000(), test000053::test3_bug1000(), test000053::test4_bug1000(), test000053::test5_bug1000(), test000093::test_bug1503_1(), test000093::test_bug1503_2(), test000052::test_bug988(), test_compare_utilities::test_copasi_function_expansion(), test000047::test_delay(), test000091::test_delay_in_kinetic_law(), test000091::test_delay_in_kinetic_law_local_parameter(), test_depth_first_iterator::test_dfi(), test000023::test_hasOnlySubstanceUnits(), test000025::test_hasOnlySubstanceUnits(), test000033::test_hasOnlySubstanceUnits(), test000042::test_hasOnlySubstanceUnits(), test000040::test_hasOnlySubstanceUnits(), test000043::test_hasOnlySubstanceUnits(), test000026::test_hasOnlySubstanceUnits(), test000082::test_import_delayAssignment_1(), test000082::test_import_delayAssignment_2(), test000082::test_import_delayAssignment_3(), test000082::test_import_delayAssignment_4(), test000082::test_import_delayAssignment_5(), test000082::test_import_delayAssignment_6(), test000082::test_import_delayAssignment_7(), test000082::test_import_delayAssignment_8(), test000064::test_import_event_assignment_expression_and_hasOnlySubstanceUnits_1(), test000064::test_import_event_assignment_expression_and_hasOnlySubstanceUnits_2(), test000064::test_import_event_assignment_expression_and_hasOnlySubstanceUnits_3(), test000064::test_import_event_assignment_expression_and_hasOnlySubstanceUnits_4(), test000064::test_import_event_assignment_expression_and_hasOnlySubstanceUnits_5(), test000064::test_import_event_assignment_expression_and_hasOnlySubstanceUnits_6(), test000064::test_import_event_assignment_expression_and_hasOnlySubstanceUnits_7(), test000064::test_import_event_assignment_expression_and_hasOnlySubstanceUnits_8(), test000095::test_import_l3_event_1(), test000095::test_import_l3_event_2(), test000095::test_import_l3_event_3(), test000095::test_import_l3_event_4(), test000095::test_import_l3_event_5(), test000065::test_import_reaction_with_unsuitable_kinetic_1(), test000065::test_import_reaction_with_unsuitable_kinetic_2(), test000064::test_import_rule_expression_and_hasOnlySubstanceUnits_1(), test000064::test_import_rule_expression_and_hasOnlySubstanceUnits_4(), test000064::test_import_rule_expression_and_hasOnlySubstanceUnits_6(), test000064::test_import_rule_expression_and_hasOnlySubstanceUnits_7(), test000075::test_import_time_dependent_function_definition(), test000078::test_l2v4_import_unordered_functions(), CEvaluationNodeNumber::toAST(), CEvaluationNodeConstant::toAST(), CEvaluationNodeOperator::toAST(), CEvaluationNodeLogical::toAST(), CEvaluationNodeFunction::toAST(), and CReaction::variables2objects().
|
virtual |
Create a new invalid ASTNode.
Reimplemented in CEvaluationNodeFunction, CEvaluationNodeLogical, CEvaluationNodeOperator, CEvaluationNodeCall, CEvaluationNodeObject, CEvaluationNodeChoice, CEvaluationNodeConstant, CEvaluationNodeVector, CEvaluationNodeDelay, CEvaluationNodeVariable, CEvaluationNodeNumber, CEvaluationNodeStructure, and CEvaluationNodeWhiteSpace.
Definition at line 436 of file CEvaluationNode.cpp.
Referenced by CSBMLExporter::convertToASTNode(), CEvaluationNodeOperator::createModuloTree(), CEvaluationNodeDelay::toAST(), CEvaluationNodeChoice::toAST(), CEvaluationTree::toAST(), CEvaluationNodeObject::toAST(), CEvaluationNodeCall::toAST(), CEvaluationNodeOperator::toAST(), CEvaluationNodeLogical::toAST(), and CEvaluationNodeFunction::toAST().
|
static |
Retrieve the type part of type
const | Type & type |
Definition at line 123 of file CEvaluationNode.cpp.
Referenced by CODEExporter::assembleSubTreeForMassAction(), CEvaluationTree::buildCalculationSequence(), CEvaluationNodeCall::buildParameters(), CSBMLExporter::checkForPiecewiseFunctions(), CSBMLExporter::checkForUnsupportedFunctionCalls(), CSBMLExporter::checkForUnsupportedObjectReferences(), CEvaluationNodeCall::clearParameters(), CMathEventN::CTrigger::compile(), CMathTrigger::compile(), CMathTrigger::compileEQ(), CModelAdd::copyDelayExpression(), CModelAdd::copyEventAssignmentExpression(), CModelAdd::copyExpression(), CModelAdd::copyInitialExpression(), CModelAdd::copyTriggerExpression(), CMathEventN::CTrigger::countRoots(), create(), createCall(), createChoice(), SBMLImporter::createCReactionFromReaction(), CSBMLExporter::createEvent(), createFunction(), createGeneralPower(), CSBMLExporter::createInitialAssignment(), createItem(), createItemPower(), createItemPowerItem(), createLogical(), createLogicalChoice(), createLogicalItem(), createNormalRepresentation(), createProduct(), CSBMLExporter::createRule(), createSum(), SBMLImporter::divideByObject(), CNormalTranslation::elementaryElimination(), CNormalTranslation::elementaryEliminationDivide(), CNormalTranslation::elementaryEliminationFunction(), CNormalTranslation::elementaryEliminationMinus(), CNormalTranslation::elementaryEliminationModulus(), CNormalTranslation::elementaryEliminationMultiply(), CNormalTranslation::elementaryEliminationPlus(), CNormalTranslation::elementaryEliminationPower(), CNormalTranslation::eliminateDirectlyNestedFractions(), CNormalTranslation::eliminateNestedPowers(), CNormalTranslation::eliminatePowersOfFractions(), CFunctionAnalyzer::evaluateNode(), CNormalTranslation::expandPowerBases(), CNormalTranslation::expandPowerExponents(), CNormalTranslation::expandPowerNodes(), CNormalTranslation::expandProducts(), CSBMLExporter::exportEventAssignments(), CODEExporter::exportExpression(), CODEExporter::exportKineticFunction(), CODEExporterC::exportSingleFunction(), CODEExporter::exportSingleFunction(), CNormalTranslation::factorize(), CEvaluationNodeNormalizer::findChainNodes(), CSBMLExporter::findDirectlyUsedFunctions(), SBMLImporter::findFunctionCalls(), CODEExporter::findFunctionsCalls(), CSBMLExporter::findModelEntityDependencies(), CNormalTranslation::findNegativeNumbers(), CNormalTranslation::findSummands(), CEvaluationNodeOperator::fromAST(), CEvaluationNodeFunction::fromAST(), CEvaluationNodeFunction::getMMLString(), CFunction::initVariables(), SBMLImporter::isConstantFlux(), CSBMLExporter::isEventAssignmentSBMLCompatible(), isLogical(), SBMLImporter::isMassActionExpression(), CODEExporter::isModelEntityExpressionODEExporterCompatible(), CNormalTranslation::matchPowerBases(), CNormalTranslation::matchSummands(), CModelMerging::mergeInExpression(), CODEExporter::modifyTreeForMassAction(), CNormalTranslation::multiply(), CSBMLExporter::multiplyByObject(), CNormalTranslation::newCancel(), CNormalTranslation::newEvaluateNumbers(), CEvaluationNodeNormalizer::normalize(), CEvaluationNodeNormalizer::normalizeCEvaluationNodeChoice(), CEvaluationNodeNormalizer::normalizeDivideNode(), CEvaluationNodeNormalizer::normalizeMinusNode(), CEvaluationNodeNormalizer::normalizeModulusNode(), CEvaluationNodeNormalizer::normalizeMultiplyNode(), CEvaluationNodeNormalizer::normalizePlusNode(), CEvaluationNodeNormalizer::normalizePowerNode(), CReaction::objects2variables(), operator<(), printRecursively(), CNormalTranslation::product2fraction(), CSBMLExporter::replaceSpeciesReferences(), setBooleanRequired(), CODEExporterC::setExportNameOfFunction(), CSBMLExporter::setFunctionSBMLIds(), CFunction::setInfix(), CEvaluationNodeOperator::simplifyNode(), CEvaluationNodeFunction::simplifyNode(), CNormalTranslation::splitProduct(), CNormalTranslation::splitSum(), CNormalTranslation::swapNegativeNumbers(), test000053::test1_bug1000(), test000053::test2_bug1000(), test000053::test3_bug1000(), test000053::test4_bug1000(), test000053::test5_bug1000(), test000093::test_bug1503_1(), test000093::test_bug1503_2(), test000061::test_bug_1044(), test_compare_utilities::test_copasi_function_expansion(), test000091::test_delay_in_kinetic_law(), test000091::test_delay_in_kinetic_law_local_parameter(), test_depth_first_iterator::test_dfi(), test000082::test_import_delayAssignment_1(), test000082::test_import_delayAssignment_2(), test000082::test_import_delayAssignment_3(), test000082::test_import_delayAssignment_4(), test000082::test_import_delayAssignment_5(), test000082::test_import_delayAssignment_6(), test000082::test_import_delayAssignment_7(), test000082::test_import_delayAssignment_8(), test000064::test_import_event_assignment_expression_and_hasOnlySubstanceUnits_1(), test000064::test_import_event_assignment_expression_and_hasOnlySubstanceUnits_2(), test000064::test_import_event_assignment_expression_and_hasOnlySubstanceUnits_3(), test000064::test_import_event_assignment_expression_and_hasOnlySubstanceUnits_4(), test000064::test_import_event_assignment_expression_and_hasOnlySubstanceUnits_5(), test000064::test_import_event_assignment_expression_and_hasOnlySubstanceUnits_6(), test000064::test_import_event_assignment_expression_and_hasOnlySubstanceUnits_7(), test000064::test_import_event_assignment_expression_and_hasOnlySubstanceUnits_8(), test000095::test_import_l3_event_1(), test000095::test_import_l3_event_2(), test000095::test_import_l3_event_3(), test000095::test_import_l3_event_4(), test000095::test_import_l3_event_5(), test000087::test_import_reaction_flux_reference_2(), test000065::test_import_reaction_with_unsuitable_kinetic_1(), test000065::test_import_reaction_with_unsuitable_kinetic_2(), test000064::test_import_rule_expression_and_hasOnlySubstanceUnits_1(), test000064::test_import_rule_expression_and_hasOnlySubstanceUnits_2(), test000064::test_import_rule_expression_and_hasOnlySubstanceUnits_3(), test000064::test_import_rule_expression_and_hasOnlySubstanceUnits_4(), test000064::test_import_rule_expression_and_hasOnlySubstanceUnits_5(), test000064::test_import_rule_expression_and_hasOnlySubstanceUnits_6(), test000064::test_import_rule_expression_and_hasOnlySubstanceUnits_7(), test000064::test_import_rule_expression_and_hasOnlySubstanceUnits_8(), test000075::test_import_time_dependent_function_definition(), test000078::test_l2v4_import_unordered_functions(), test000087::test_simulate_reaction_flux_reference_1(), CReaction::variables2objects(), and CEvaluationNodeCall::verifyParameters().
|
staticprivate |
A list of reserved key words
Definition at line 86 of file CEvaluationNode.h.
Referenced by isKeyword().
|
protected |
Referenced by CEvaluationNodeCall::CEvaluationNodeCall(), CEvaluationNodeChoice::CEvaluationNodeChoice(), CEvaluationNodeConstant::CEvaluationNodeConstant(), CEvaluationNodeDelay::CEvaluationNodeDelay(), CEvaluationNodeFunction::CEvaluationNodeFunction(), CEvaluationNodeLogical::CEvaluationNodeLogical(), CEvaluationNodeNumber::CEvaluationNodeNumber(), CEvaluationNodeObject::CEvaluationNodeObject(), CEvaluationNodeOperator::CEvaluationNodeOperator(), CEvaluationNodeStructure::CEvaluationNodeStructure(), CEvaluationNodeVariable::CEvaluationNodeVariable(), CEvaluationNodeVector::CEvaluationNodeVector(), and operator<().
|
protected |
A pointer to the numerical value of the node
Definition at line 342 of file CEvaluationNode.h.
Referenced by CEvaluationNode(), CEvaluationNodeObject::CEvaluationNodeObject(), CEvaluationNodeObject::compile(), CEvaluationNodeObject::getObjectValuePtr(), getValue(), getValuePointer(), and CEvaluationNodeObject::setObjectValuePtr().
|
protected |
The type the node
Definition at line 332 of file CEvaluationNode.h.
Referenced by CEvaluationNodeCall::calculate(), CEvaluationNodeOperator::calculate(), CEvaluationNodeLogical::calculate(), CEvaluationNodeLogical::CEvaluationNodeLogical(), CEvaluationNodeOperator::CEvaluationNodeOperator(), CEvaluationNodeCall::compile(), CEvaluationNodeObject::compile(), CEvaluationNodeDelay::compile(), copyNode(), CEvaluationNodeDelay::getBerkeleyMadonnaString(), CEvaluationNodeFunction::getBerkeleyMadonnaString(), CEvaluationNodeCall::getCalledTree(), CEvaluationNodeDelay::getCCodeString(), CEvaluationNodeCall::getCCodeString(), CEvaluationNodeFunction::getCCodeString(), CEvaluationNodeObject::getData(), CEvaluationNodeDelay::getDisplayString(), CEvaluationNodeCall::getDisplayString(), CEvaluationNodeFunction::getDisplayString(), CEvaluationNodeCall::getInfix(), CEvaluationNodeObject::getInfix(), CEvaluationNodeDelay::getInfix(), CEvaluationNodeFunction::getInfix(), CEvaluationNodeDelay::getMMLString(), CEvaluationNodeCall::getMMLString(), CEvaluationNodeOperator::getMMLString(), CEvaluationNodeFunction::getMMLString(), getType(), CEvaluationNodeDelay::getXPPString(), CEvaluationNodeFunction::getXPPString(), CEvaluationNodeConstant::isBoolean(), CEvaluationNodeFunction::isBoolean(), printRecursively(), CEvaluationNodeObject::setData(), CEvaluationNodeObject::setObjectValuePtr(), CEvaluationNodeOperator::simplifyNode(), and CEvaluationNodeFunction::simplifyNode().
|
protected |
The numerical value of the node
Definition at line 337 of file CEvaluationNode.h.
Referenced by CEvaluationNodeCall::calculate(), CEvaluationNodeChoice::calculate(), CEvaluationNodeOperator::calculate(), CEvaluationNodeVariable::calculate(), CEvaluationNodeLogical::calculate(), CEvaluationNodeFunction::calculate(), CEvaluationNode(), CEvaluationNodeConstant::CEvaluationNodeConstant(), CEvaluationNodeDelay::CEvaluationNodeDelay(), CEvaluationNodeNumber::CEvaluationNodeNumber(), CEvaluationNodeObject::compile(), CEvaluationNodeConstant::getBerkeleyMadonnaString(), CEvaluationNodeConstant::getXPPString(), and printRecursively().