|
copasi API
0.1
|
#include <CEvaluationNodeOperator.h>
Public Types | |
| enum | SubType { INVALID = 0x00FFFFFF, POWER = 0x00000000, MULTIPLY = 0x00000001, DIVIDE = 0x00000002, MODULUS = 0x00000003, PLUS = 0x00000004, MINUS = 0x00000005 } |
Public Member Functions | |
| CEvaluationNodeOperator (const SubType &subType, const Data &data) | |
| CEvaluationNodeOperator (const CEvaluationNodeOperator &src) | |
| virtual | ~CEvaluationNodeOperator () |
| virtual const C_FLOAT64 & | value () const |
| virtual bool | compile (const CEvaluationTree *pTree) |
| virtual std::string | getInfix () const |
| virtual std::string | getDisplayString (const CEvaluationTree *pTree) const |
| virtual std::string | getDisplay_C_String (const CEvaluationTree *pTree) const |
| virtual std::string | getDisplay_MMD_String (const CEvaluationTree *pTree) const |
| virtual std::string | getDisplay_XPP_String (const CEvaluationTree *pTree) const |
| virtual ASTNode * | toAST (const CCopasiDataModel *pDataModel) const |
| virtual CEvaluationNode * | simplifyNode (const std::vector< CEvaluationNode * > &children) const |
| bool | createModuloTree (const CEvaluationNodeOperator *pNode, ASTNode *pASTNode, const CCopasiDataModel *pDataModel) const |
| virtual void | writeMathML (std::ostream &out, const std::vector< std::vector< std::string > > &env, bool expand=true, unsigned C_INT32 l=0) const |
| CEvaluationNode * | getLeft () |
| const CEvaluationNode * | getLeft () const |
| CEvaluationNode * | getRight () |
| const CEvaluationNode * | getRight () const |
Static Public Member Functions | |
| static CEvaluationNode * | createNodeFromASTTree (const ASTNode &node) |
This is the class for nodes presenting operators used in an evaluation trees.
Default constructor
| const | SubType & subType |
| const | Data & data |
| CEvaluationNodeOperator::CEvaluationNodeOperator | ( | const CEvaluationNodeOperator & | src | ) |
Copy constructor
| const | CEvaluationNodeOperator & src |
| CEvaluationNodeOperator::~CEvaluationNodeOperator | ( | ) | [virtual] |
Destructor
| bool CEvaluationNodeOperator::compile | ( | const CEvaluationTree * | pTree | ) | [virtual] |
Compile a node;
| const | CEvaluationTree * pTree |
Reimplemented from CEvaluationNode.
| bool CEvaluationNodeOperator::createModuloTree | ( | const CEvaluationNodeOperator * | pNode, |
| ASTNode * | pASTNode, | ||
| const CCopasiDataModel * | pDataModel | ||
| ) | const |
Convert our modulo to something SBML understands
| const | CEvaluationNodeOperator* pNode the modulo operator node to be converted. |
| const | ASTNode* pASTNode the root node for the SBML math expression |
| CEvaluationNode * CEvaluationNodeOperator::createNodeFromASTTree | ( | const ASTNode & | node | ) | [static] |
Create a new operator node from an ASTNode tree.
| const | ASTNode* node |
| std::string CEvaluationNodeOperator::getDisplay_C_String | ( | const CEvaluationTree * | pTree | ) | const [virtual] |
Retrieve the display string of the node and its eventual child nodes in C.
Reimplemented from CEvaluationNode.
| std::string CEvaluationNodeOperator::getDisplay_MMD_String | ( | const CEvaluationTree * | pTree | ) | const [virtual] |
Retrieve the display string of the node and its eventual child nodes in Berkeley Madonna format.
Reimplemented from CEvaluationNode.
| std::string CEvaluationNodeOperator::getDisplay_XPP_String | ( | const CEvaluationTree * | pTree | ) | const [virtual] |
Retrieve the display string of the node and its eventual child nodes in XPPAUT format.
Reimplemented from CEvaluationNode.
| std::string CEvaluationNodeOperator::getDisplayString | ( | const CEvaluationTree * | pTree | ) | const [virtual] |
Retrieve the display string of the node and its eventual child nodes.
Reimplemented from CEvaluationNode.
| std::string CEvaluationNodeOperator::getInfix | ( | ) | const [virtual] |
Retrieve the infix value of the node and its eventual child nodes.
Reimplemented from CEvaluationNode.
| CEvaluationNode * CEvaluationNodeOperator::getLeft | ( | ) |
| const CEvaluationNode * CEvaluationNodeOperator::getLeft | ( | ) | const |
| CEvaluationNode * CEvaluationNodeOperator::getRight | ( | ) |
| const CEvaluationNode * CEvaluationNodeOperator::getRight | ( | ) | const |
| CEvaluationNode * CEvaluationNodeOperator::simplifyNode | ( | const std::vector< CEvaluationNode * > & | children | ) | const [virtual] |
Create a simplified node for an operatorNode with children from vector (if not exist, = NULL), and assign new children
Reimplemented from CEvaluationNode.
| ASTNode * CEvaluationNodeOperator::toAST | ( | const CCopasiDataModel * | pDataModel | ) | const [virtual] |
Create a new ASTNode corresponding to this OperatorNode.
Reimplemented from CEvaluationNode.
| virtual const C_FLOAT64& CEvaluationNodeOperator::value | ( | ) | const [inline, virtual] |
| void CEvaluationNodeOperator::writeMathML | ( | std::ostream & | out, |
| const std::vector< std::vector< std::string > > & | env, | ||
| bool | expand = true, |
||
| unsigned C_INT32 | l = 0 |
||
| ) | const [virtual] |
generate display MathML recursively
Reimplemented from CEvaluationNode.
1.7.5.1