COPASI API
4.40.278
|
#include <CEvaluationNodeFunction.h>
Public Member Functions | |
virtual void | calculate () override |
CEvaluationNodeFunction (const CEvaluationNodeFunction &src) | |
CEvaluationNodeFunction (const SubType &subType, const Data &data) | |
virtual CIssue | compile () override |
virtual std::string | getBerkeleyMadonnaString (const std::vector< std::string > &children) const override |
virtual std::string | getCCodeString (const std::vector< std::string > &children) const override |
virtual std::string | getDisplayString (const std::vector< std::string > &children) const override |
virtual std::string | getInfix (const std::vector< std::string > &children) const override |
CEvaluationNode * | getLeft () |
const CEvaluationNode * | getLeft () const |
virtual std::string | getMMLString (const std::vector< std::string > &children, bool expand, const std::vector< std::vector< std::string > > &variables) const override |
virtual CValidatedUnit | getUnit (const CMathContainer &container, const std::vector< CValidatedUnit > &units) const override |
virtual std::string | getXPPString (const std::vector< std::string > &children) const override |
std::string | handleNot (const std::string &str) const |
std::string | handleSign (const std::string &str) const |
virtual CValidatedUnit | setUnit (const CMathContainer &container, const std::map< CEvaluationNode *, CValidatedUnit > ¤tUnits, std::map< CEvaluationNode *, CValidatedUnit > &targetUnits) const override |
virtual CEvaluationNode * | simplifyNode (const std::vector< CEvaluationNode * > &children) const override |
virtual ASTNode * | toAST (const CDataModel *pDataModel) const override |
virtual | ~CEvaluationNodeFunction () |
Public Member Functions inherited from CEvaluationNode | |
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 |
CEvaluationNode () | |
CEvaluationNode (const CEvaluationNode &src) | |
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 |
const CEvaluationTree * | getTree () const |
const C_FLOAT64 * | getValuePointer () const |
const ValueType & | getValueType () const |
virtual bool | isBoolean () const |
const MainType & | mainType () const |
bool | operator!= (const CEvaluationNode &right) const |
bool | operator< (const CEvaluationNode &rhs) |
bool | operator< (const CEvaluationNode &right) const |
bool | operator== (const CEvaluationNode &right) const |
void | printRecursively () const |
void | printRecursively (std::ostream &os, int indent=0) const |
void | setTree (const CEvaluationTree *pTree) |
virtual CIssue | setValueType (const ValueType &valueType) |
CEvaluationNode * | splitBranch (const CEvaluationNode *splitnode, bool left) const |
const SubType & | subType () const |
virtual | ~CEvaluationNode () |
Public Member Functions inherited from CCopasiNode< std::string > | |
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 Data & | getData () |
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 () |
Private Member Functions | |
CEvaluationNodeFunction () | |
Private Attributes | |
CEvaluationNode * | mpArgNode1 |
CEvaluationNode * | mpArgNode2 |
CEvaluationNode * | mpArgNode3 |
CEvaluationNode * | mpArgNode4 |
const C_FLOAT64 * | mpArgValue1 |
const C_FLOAT64 * | mpArgValue2 |
const C_FLOAT64 * | mpArgValue3 |
const C_FLOAT64 * | mpArgValue4 |
C_FLOAT64(* | mpFunction )(C_FLOAT64 arg1) |
C_FLOAT64(* | mpFunction2 )(C_FLOAT64 arg1, C_FLOAT64 arg2) |
C_FLOAT64(* | mpFunction4 )(C_FLOAT64 arg1, C_FLOAT64 arg2, C_FLOAT64 arg3, C_FLOAT64 arg4) |
Static Private Attributes | |
static CRandom * | mpRandom = NULL |
This is the class for nodes presenting build-in functions used in an evaluation trees.
|
private |
Default constructor
References CEvaluationNode::mPrecedence, and PRECEDENCE_NUMBER.
Referenced by fromAST().
Default constructor
const | SubType & subType |
const | Data & data |
References CEvaluationNode::ABS, acoth(), acsch(), CEvaluationNode::ARCCOS, CEvaluationNode::ARCCOSH, CEvaluationNode::ARCCOT, arccot(), CEvaluationNode::ARCCOTH, CEvaluationNode::ARCCSC, arccsc(), CEvaluationNode::ARCCSCH, CEvaluationNode::ARCSEC, arcsec(), CEvaluationNode::ARCSECH, CEvaluationNode::ARCSIN, CEvaluationNode::ARCSINH, CEvaluationNode::ARCTAN, CEvaluationNode::ARCTANH, asech(), CEvaluationNode::Boolean, CEvaluationNode::CEIL, copasiNot(), CEvaluationNode::COS, CEvaluationNode::COSH, CEvaluationNode::COT, cot(), CEvaluationNode::COTH, coth(), CRandom::createGenerator(), CEvaluationNode::CSC, csc(), CEvaluationNode::CSCH, csch(), CEvaluationNode::EXP, CEvaluationNode::FACTORIAL, factorial(), fatalError, CEvaluationNode::FLOOR, CEvaluationNode::LOG, CEvaluationNode::LOG10, CEvaluationNode::MAX, max(), CEvaluationNode::MIN, min(), CEvaluationNode::MINUS, minus(), mpFunction, mpFunction2, mpRandom, CEvaluationNode::mPrecedence, CEvaluationNode::mSubType, CEvaluationNode::mValueType, CEvaluationNode::NOT, CEvaluationNode::Number, CEvaluationNode::PLUS, plus(), PRECEDENCE_FUNCTION, CEvaluationNode::RGAMMA, rgamma(), CEvaluationNode::RNORMAL, rnormal(), CEvaluationNode::RPOISSON, rpoisson(), CEvaluationNode::RUNIFORM, runiform(), CEvaluationNode::SEC, sec(), CEvaluationNode::SECH, sech(), CEvaluationNode::SIGN, sign(), CEvaluationNode::SIN, CEvaluationNode::SINH, CEvaluationNode::SQRT, CEvaluationNode::subType(), CEvaluationNode::TAN, and CEvaluationNode::TANH.
CEvaluationNodeFunction::CEvaluationNodeFunction | ( | const CEvaluationNodeFunction & | src | ) |
Copy constructor
const | CEvaluationNodeFunction & src |
|
virtual |
Destructor
Referenced by CEvaluationNodeFunction().
Referenced by CEvaluationNodeFunction().
Referenced by CEvaluationNodeFunction().
Referenced by CEvaluationNodeFunction().
Referenced by CEvaluationNodeFunction().
Referenced by CEvaluationNodeFunction().
|
inlineoverridevirtual |
Calculate the numerical result of the node. It is assumed that all child nodes are up to date.
Reimplemented from CEvaluationNode.
References mpArgValue1, mpArgValue2, mpArgValue3, mpArgValue4, mpFunction, mpFunction2, mpFunction4, and CEvaluationNode::mValue.
|
overridevirtual |
Compile a node;
const | CEvaluationTree * pTree |
Reimplemented from CEvaluationNode.
References CIssue::Error, CCopasiNode< std::string >::getChild(), CCopasiNode< _Data >::getSibling(), CEvaluationNode::getValuePointer(), mpArgNode1, mpArgNode2, mpArgNode3, mpArgNode4, mpArgValue1, mpArgValue2, mpArgValue3, mpArgValue4, mpFunction, mpFunction2, CEvaluationNode::mValueType, CEvaluationNode::setValueType(), CIssue::Success, CIssue::TooManyArguments, and CIssue::VariableNotfound.
Referenced by getBerkeleyMadonnaString(), getCCodeString(), getDisplayString(), getInfix(), and getXPPString().
Referenced by CEvaluationNodeFunction().
Referenced by CEvaluationNodeFunction().
Referenced by CEvaluationNodeFunction().
Referenced by CEvaluationNodeFunction().
Referenced by CEvaluationNodeFunction().
References C_FLOAT64.
Referenced by CEvaluationNodeFunction().
|
static |
Creates a new CEvaluationNodeCall from an ASTNode and the given children
const | ASTNode* pNode |
const | std::vector< CEvaluationNode * > & children |
Replaces all root nodes with the corresponding power operator since COPASI does not have the ROOT function.
Replaces all LOG10 (AST_FUNCTION_LOG) nodes that have two children and the base is not 10 with the quotient of two LOG10 nodes with the base as the argument for the divisor LOG10 node.
References CEvaluationNode::ABS, CCopasiNode< _Data >::addChild(), CEvaluationNode::ARCCOS, CEvaluationNode::ARCCOSH, CEvaluationNode::ARCCOT, CEvaluationNode::ARCCOTH, CEvaluationNode::ARCCSC, CEvaluationNode::ARCCSCH, CEvaluationNode::ARCSEC, CEvaluationNode::ARCSECH, CEvaluationNode::ARCSIN, CEvaluationNode::ARCSINH, CEvaluationNode::ARCTAN, CEvaluationNode::ARCTANH, SBMLImporter::areApproximatelyEqual(), CEvaluationNode::CEIL, CEvaluationNodeFunction(), CEvaluationNode::COS, CEvaluationNode::COSH, CEvaluationNode::COT, CEvaluationNode::COTH, CEvaluationNode::CSC, CEvaluationNode::CSCH, CEvaluationNode::DIVIDE, CEvaluationNode::DOUBLE, CEvaluationNode::EXP, CEvaluationNode::FACTORIAL, fatalError, CEvaluationNode::FLOOR, CEvaluationNode::getValuePointer(), CEvaluationNode::INVALID, CEvaluationNode::LOG, CEvaluationNode::LOG10, CEvaluationNode::mainType(), CEvaluationNode::NOT, CEvaluationNode::NUMBER, CEvaluationNode::POWER, CEvaluationNode::SEC, CEvaluationNode::SECH, CEvaluationNode::SIN, CEvaluationNode::SINH, CEvaluationNode::SQRT, CEvaluationNode::subType(), CEvaluationNode::TAN, and CEvaluationNode::TANH.
Referenced by CEvaluationTree::fromAST().
|
overridevirtual |
Retrieve the display string of the node and its eventual child nodes in Berkeley Madonna format.
Reimplemented from CEvaluationNode.
References CEvaluationNode::ABS, CEvaluationNode::ARCCOS, CEvaluationNode::ARCCOSH, CEvaluationNode::ARCCOT, CEvaluationNode::ARCCOTH, CEvaluationNode::ARCCSC, CEvaluationNode::ARCCSCH, CEvaluationNode::ARCSEC, CEvaluationNode::ARCSECH, CEvaluationNode::ARCSIN, CEvaluationNode::ARCSINH, CEvaluationNode::ARCTAN, CEvaluationNode::ARCTANH, CEvaluationNode::CEIL, compile(), CEvaluationNode::COS, CEvaluationNode::COSH, CEvaluationNode::COT, CEvaluationNode::COTH, CEvaluationNode::CSC, CEvaluationNode::CSCH, CEvaluationNode::EXP, CEvaluationNode::FACTORIAL, CEvaluationNode::FLOOR, CEvaluationNode::LOG, CEvaluationNode::LOG10, CEvaluationNode::MAX, CCopasiNode< std::string >::mData, CEvaluationNode::MIN, CEvaluationNode::MINUS, CEvaluationNode::mSubType, CEvaluationNode::NOT, CEvaluationNode::PLUS, CEvaluationNode::RGAMMA, CEvaluationNode::RNORMAL, CEvaluationNode::RPOISSON, CEvaluationNode::RUNIFORM, CEvaluationNode::SEC, CEvaluationNode::SECH, CEvaluationNode::SIN, CEvaluationNode::SINH, CEvaluationNode::SQRT, CEvaluationNode::subType(), CEvaluationNode::TAN, and CEvaluationNode::TANH.
|
overridevirtual |
Retrieve the display string of the node and its eventual child nodes in C.
Reimplemented from CEvaluationNode.
References CEvaluationNode::ABS, CEvaluationNode::ARCCOS, CEvaluationNode::ARCCOSH, CEvaluationNode::ARCCOT, CEvaluationNode::ARCCOTH, CEvaluationNode::ARCCSC, CEvaluationNode::ARCCSCH, CEvaluationNode::ARCSEC, CEvaluationNode::ARCSECH, CEvaluationNode::ARCSIN, CEvaluationNode::ARCSINH, CEvaluationNode::ARCTAN, CEvaluationNode::ARCTANH, CEvaluationNode::CEIL, compile(), CEvaluationNode::COS, CEvaluationNode::COSH, CEvaluationNode::COT, CEvaluationNode::COTH, CEvaluationNode::CSC, CEvaluationNode::CSCH, CEvaluationNode::EXP, CEvaluationNode::FACTORIAL, CEvaluationNode::FLOOR, CEvaluationNode::LOG, CEvaluationNode::LOG10, CEvaluationNode::MAX, CEvaluationNode::MIN, CEvaluationNode::MINUS, CEvaluationNode::mSubType, CEvaluationNode::NOT, CEvaluationNode::PLUS, CEvaluationNode::RGAMMA, CEvaluationNode::RNORMAL, CEvaluationNode::RPOISSON, CEvaluationNode::RUNIFORM, CEvaluationNode::SEC, CEvaluationNode::SECH, CEvaluationNode::SIN, CEvaluationNode::SINH, CEvaluationNode::SQRT, CEvaluationNode::subType(), CEvaluationNode::TAN, and CEvaluationNode::TANH.
|
overridevirtual |
Retrieve the display string of the node and its eventual child nodes.
Reimplemented from CEvaluationNode.
References compile(), handleNot(), handleSign(), CEvaluationNode::MAX, CCopasiNode< std::string >::mData, CEvaluationNode::MIN, CEvaluationNode::MINUS, CEvaluationNode::mSubType, CEvaluationNode::NOT, CEvaluationNode::PLUS, CEvaluationNode::RGAMMA, CEvaluationNode::RNORMAL, CEvaluationNode::RPOISSON, and CEvaluationNode::RUNIFORM.
|
overridevirtual |
Retrieve the infix value of the node and its eventual child nodes.
Reimplemented from CEvaluationNode.
References compile(), handleNot(), handleSign(), CEvaluationNode::MAX, CCopasiNode< std::string >::mData, CEvaluationNode::MIN, CEvaluationNode::MINUS, CEvaluationNode::mSubType, CEvaluationNode::NOT, CEvaluationNode::PLUS, CEvaluationNode::RGAMMA, CEvaluationNode::RNORMAL, CEvaluationNode::RPOISSON, and CEvaluationNode::RUNIFORM.
CEvaluationNode * CEvaluationNodeFunction::getLeft | ( | ) |
References mpArgNode1.
const CEvaluationNode * CEvaluationNodeFunction::getLeft | ( | ) | const |
References mpArgNode1.
|
overridevirtual |
Build the MathML string
const | std::vector< std::string > & children |
bool | expand = true |
const | std::vector< std::vector< std::string > > & variables |
Reimplemented from CEvaluationNode.
References CEvaluationNode::ABS, CEvaluationNode::ARCCOS, CEvaluationNode::ARCCOSH, CEvaluationNode::ARCCOT, CEvaluationNode::ARCCOTH, CEvaluationNode::ARCCSC, CEvaluationNode::ARCCSCH, CEvaluationNode::ARCSEC, CEvaluationNode::ARCSECH, CEvaluationNode::ARCSIN, CEvaluationNode::ARCSINH, CEvaluationNode::ARCTAN, CEvaluationNode::ARCTANH, CEvaluationNode::CALL, CEvaluationNode::CEIL, CEvaluationNode::CONSTANT, CEvaluationNode::COS, CEvaluationNode::COSH, CEvaluationNode::COT, CEvaluationNode::COTH, CEvaluationNode::CSC, CEvaluationNode::CSCH, CEvaluationNode::EXP, CEvaluationNode::FACTORIAL, CEvaluationNode::FLOOR, CCopasiNode< _Data >::getChild(), CCopasiNode< std::string >::getParent(), CEvaluationNode::INVALID, CEvaluationNode::LOG, CEvaluationNode::LOG10, CEvaluationNode::mainType(), CEvaluationNode::MAX, CCopasiNode< std::string >::mData, CEvaluationNode::MIN, CEvaluationNode::MINUS, mpArgNode1, CEvaluationNode::mSubType, CEvaluationNode::NOT, CEvaluationNode::NUMBER, CEvaluationNode::OPERATOR, CEvaluationNode::PLUS, CEvaluationNode::POWER, CEvaluationNode::RGAMMA, CEvaluationNode::RNORMAL, CEvaluationNode::RPOISSON, CEvaluationNode::RUNIFORM, CEvaluationNode::SEC, CEvaluationNode::SECH, CEvaluationNode::SIGN, CEvaluationNode::SIN, CEvaluationNode::SINH, CEvaluationNode::SQRT, CEvaluationNode::subType(), CEvaluationNode::TAN, CEvaluationNode::TANH, and CEvaluationNode::VARIABLE.
|
overridevirtual |
Figure out the appropriate CUnit to use, based on the child nodes. This sets the default, appropriate for many cases, as Dimensionless
const | CMathContainer & container |
const | std::vector< CValidatedUnit > & units |
Reimplemented from CEvaluationNode.
References CEvaluationNode::ABS, CEvaluationNode::ARCCOS, CEvaluationNode::ARCCOSH, CEvaluationNode::ARCCOT, CEvaluationNode::ARCCOTH, CEvaluationNode::ARCCSC, CEvaluationNode::ARCCSCH, CEvaluationNode::ARCSEC, CEvaluationNode::ARCSECH, CEvaluationNode::ARCSIN, CEvaluationNode::ARCSINH, CEvaluationNode::ARCTAN, CEvaluationNode::ARCTANH, CEvaluationNode::CEIL, CValidatedUnit::conflict(), CEvaluationNode::COS, CEvaluationNode::COSH, CEvaluationNode::COT, CEvaluationNode::COTH, CEvaluationNode::CSC, CEvaluationNode::CSCH, CBaseUnit::dimensionless, CEvaluationNode::EXP, CValidatedUnit::exponentiate(), CEvaluationNode::FACTORIAL, CEvaluationNode::FLOOR, CUnit::getComponents(), CEvaluationNode::LOG, CEvaluationNode::LOG10, CEvaluationNode::MAX, CValidatedUnit::merge(), CEvaluationNode::MIN, CEvaluationNode::MINUS, CEvaluationNode::NOT, CEvaluationNode::PLUS, CEvaluationNode::RGAMMA, CEvaluationNode::RNORMAL, CEvaluationNode::RPOISSON, CEvaluationNode::RUNIFORM, CEvaluationNode::SEC, CEvaluationNode::SECH, CValidatedUnit::setConflict(), CEvaluationNode::SIN, CEvaluationNode::SINH, CEvaluationNode::SQRT, CEvaluationNode::subType(), CEvaluationNode::TAN, CEvaluationNode::TANH, and CBaseUnit::undefined.
|
overridevirtual |
Retrieve the display string of the node and its eventual child nodes in XPPAUT format.
Reimplemented from CEvaluationNode.
References CEvaluationNode::ABS, CEvaluationNode::ARCCOS, CEvaluationNode::ARCCOSH, CEvaluationNode::ARCCOT, CEvaluationNode::ARCCOTH, CEvaluationNode::ARCCSC, CEvaluationNode::ARCCSCH, CEvaluationNode::ARCSEC, CEvaluationNode::ARCSECH, CEvaluationNode::ARCSIN, CEvaluationNode::ARCSINH, CEvaluationNode::ARCTAN, CEvaluationNode::ARCTANH, CEvaluationNode::CEIL, compile(), CEvaluationNode::COS, CEvaluationNode::COSH, CEvaluationNode::COT, CEvaluationNode::COTH, CEvaluationNode::CSC, CEvaluationNode::CSCH, CEvaluationNode::EXP, CEvaluationNode::FACTORIAL, CEvaluationNode::FLOOR, CEvaluationNode::LOG, CEvaluationNode::LOG10, CEvaluationNode::MAX, CCopasiNode< std::string >::mData, CEvaluationNode::MIN, CEvaluationNode::MINUS, CEvaluationNode::mSubType, CEvaluationNode::NOT, CEvaluationNode::PLUS, CEvaluationNode::RGAMMA, CEvaluationNode::RNORMAL, CEvaluationNode::RPOISSON, CEvaluationNode::RUNIFORM, CEvaluationNode::SEC, CEvaluationNode::SECH, CEvaluationNode::SIN, CEvaluationNode::SINH, CEvaluationNode::SQRT, CEvaluationNode::subType(), CEvaluationNode::TAN, and CEvaluationNode::TANH.
std::string CEvaluationNodeFunction::handleNot | ( | const std::string & | str | ) | const |
References CEvaluationNode::LOGICAL, CEvaluationNode::mainType(), CCopasiNode< std::string >::mData, and mpArgNode1.
Referenced by getDisplayString(), and getInfix().
std::string CEvaluationNodeFunction::handleSign | ( | const std::string & | str | ) | const |
References max.
Referenced by CEvaluationNodeFunction().
References min.
Referenced by CEvaluationNodeFunction().
Referenced by CEvaluationNodeFunction().
Referenced by CEvaluationNodeFunction().
References CRandom::getRandomGamma(), and mpRandom.
Referenced by CEvaluationNodeFunction().
References CRandom::getRandomNormal(), and mpRandom.
Referenced by CEvaluationNodeFunction().
References CRandom::getRandomPoisson(), and mpRandom.
Referenced by CEvaluationNodeFunction().
References CRandom::getRandomOO(), and mpRandom.
Referenced by CEvaluationNodeFunction().
Referenced by CEvaluationNodeFunction().
Referenced by CEvaluationNodeFunction().
|
overridevirtual |
Set the unit for the node and return the resulting unit. The child node units are added to the map
const | CMathContainer & container |
const | std::map < CEvaluationNode * , CValidatedUnit > & currentUnits |
std::map | < CEvaluationNode * , CValidatedUnit > & targetUnits |
Reimplemented from CEvaluationNode.
References CEvaluationNode::ABS, CEvaluationNode::ARCCOS, CEvaluationNode::ARCCOSH, CEvaluationNode::ARCCOT, CEvaluationNode::ARCCOTH, CEvaluationNode::ARCCSC, CEvaluationNode::ARCCSCH, CEvaluationNode::ARCSEC, CEvaluationNode::ARCSECH, CEvaluationNode::ARCSIN, CEvaluationNode::ARCSINH, CEvaluationNode::ARCTAN, CEvaluationNode::ARCTANH, CEvaluationNode::CEIL, CEvaluationNode::COS, CEvaluationNode::COSH, CEvaluationNode::COT, CEvaluationNode::COTH, CEvaluationNode::CSC, CEvaluationNode::CSCH, CBaseUnit::dimensionless, CEvaluationNode::EXP, CValidatedUnit::exponentiate(), CEvaluationNode::FACTORIAL, CEvaluationNode::FLOOR, CEvaluationNode::LOG, CEvaluationNode::LOG10, CEvaluationNode::MAX, CEvaluationNode::MIN, CEvaluationNode::MINUS, mpArgNode1, mpArgNode2, CEvaluationNode::NOT, CEvaluationNode::PLUS, CEvaluationNode::RGAMMA, CEvaluationNode::RNORMAL, CEvaluationNode::RPOISSON, CEvaluationNode::RUNIFORM, CEvaluationNode::SEC, CEvaluationNode::SECH, CValidatedUnit::setConflict(), CEvaluationNode::setUnit(), CEvaluationNode::SIN, CEvaluationNode::SINH, CEvaluationNode::SQRT, CEvaluationNode::subType(), CEvaluationNode::TAN, and CEvaluationNode::TANH.
Referenced by CEvaluationNodeFunction().
|
overridevirtual |
Create a simplified node for an operatorNode with children from vector (if not exist, = NULL), and assign new children
Reimplemented from CEvaluationNode.
References CCopasiNode< _Data >::addChild(), CEvaluationNode::copyBranch(), CEvaluationNode::copyNode(), CEvaluationNode::create(), CEvaluationNode::DIVIDE, CEvaluationNode::DOUBLE, CEvaluationNode::FUNCTION, CCopasiNode< _Data >::getChild(), CCopasiNode< _Data >::getData(), CEvaluationNode::getValuePointer(), CEvaluationNode::mainType(), CEvaluationNode::MINUS, CEvaluationNode::mSubType, CEvaluationNode::NUMBER, CEvaluationNode::OPERATOR, CEvaluationNode::PLUS, CEvaluationNode::POWER, CEvaluationNode::SQRT, and CEvaluationNode::subType().
|
overridevirtual |
Create a new ASTNode corresponding to this FunctionNode.
Reimplemented from CEvaluationNode.
References CEvaluationNode::ABS, CCopasiNode< _Data >::addChild(), CEvaluationNode::ARCCOS, CEvaluationNode::ARCCOSH, CEvaluationNode::ARCCOT, CEvaluationNode::ARCCOTH, CEvaluationNode::ARCCSC, CEvaluationNode::ARCCSCH, CEvaluationNode::ARCSEC, CEvaluationNode::ARCSECH, CEvaluationNode::ARCSIN, CEvaluationNode::ARCSINH, CEvaluationNode::ARCTAN, CEvaluationNode::ARCTANH, CEvaluationNode::CEIL, CEvaluationNode::COS, CEvaluationNode::COSH, CEvaluationNode::COT, CEvaluationNode::COTH, CEvaluationNode::CSC, CEvaluationNode::CSCH, CEvaluationNode::EXP, CEvaluationNode::FACTORIAL, CEvaluationNode::FLOOR, CCopasiNode< std::string >::getChild(), CCopasiNode< _Data >::getSibling(), CEvaluationNode::INVALID, CEvaluationNode::LOG, CEvaluationNode::LOG10, CEvaluationNode::MAX, CEvaluationNode::MIN, CEvaluationNode::MINUS, CEvaluationNode::NOT, CEvaluationNode::PLUS, CEvaluationNode::RGAMMA, CEvaluationNode::RNORMAL, CEvaluationNode::RPOISSON, CEvaluationNode::RUNIFORM, CEvaluationNode::SEC, CEvaluationNode::SECH, CEvaluationNode::SIN, CEvaluationNode::SINH, CEvaluationNode::SQRT, CEvaluationNode::subType(), CEvaluationNode::TAN, CEvaluationNode::TANH, and CEvaluationNode::toAST().
|
private |
Referenced by compile(), getLeft(), getMMLString(), handleNot(), handleSign(), and setUnit().
|
private |
|
private |
Referenced by compile().
|
private |
Referenced by compile().
|
private |
Referenced by calculate(), and compile().
|
private |
Referenced by calculate(), and compile().
|
private |
Referenced by calculate(), and compile().
|
private |
Referenced by calculate(), and compile().
Referenced by calculate(), CEvaluationNodeFunction(), and compile().
Referenced by calculate(), CEvaluationNodeFunction(), and compile().
|
private |
Referenced by calculate().
|
staticprivate |
Referenced by CEvaluationNodeFunction(), rgamma(), rnormal(), rpoisson(), and runiform().