copasi API
0.1
|
#include <CEvaluationNodeFunction.h>
Public Types | |
enum | SubType { INVALID = 0x00FFFFFF, LOG = 0x00000000, LOG10 = 0x00000001, EXP = 0x00000002, SIN = 0x00000003, COS = 0x00000004, TAN = 0x00000005, SEC = 0x00000006, CSC = 0x00000007, COT = 0x00000008, SINH = 0x00000009, COSH = 0x0000000a, TANH = 0x0000000b, SECH = 0x0000000c, CSCH = 0x0000000d, COTH = 0x0000000e, ARCSIN = 0x0000000f, ARCCOS = 0x00000010, ARCTAN = 0x00000011, ARCSEC = 0x00000012, ARCCSC = 0x00000013, ARCCOT = 0x00000014, ARCSINH = 0x00000015, ARCCOSH = 0x00000016, ARCTANH = 0x00000017, ARCSECH = 0x00000018, ARCCSCH = 0x00000019, ARCCOTH = 0x0000001a, SQRT = 0x0000001b, ABS = 0x0000001c, FLOOR = 0x0000001d, CEIL = 0x0000001e, FACTORIAL = 0x0000001f, MINUS = 0x00000020, PLUS = 0x00000021, NOT = 0x00000022, RUNIFORM = 0x00000023, RNORMAL = 0x00000024 } |
Public Member Functions | |
CEvaluationNodeFunction (const SubType &subType, const Data &data) | |
CEvaluationNodeFunction (const CEvaluationNodeFunction &src) | |
virtual | ~CEvaluationNodeFunction () |
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 bool | isBoolean () const |
virtual ASTNode * | toAST (const CCopasiDataModel *pDataModel) const |
virtual CEvaluationNode * | simplifyNode (const std::vector< CEvaluationNode * > &children) 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 |
Static Public Member Functions | |
static CEvaluationNode * | createNodeFromASTTree (const ASTNode &node) |
This is the class for nodes presenting build-in functions used in an evaluation trees.
Default constructor
const | SubType & subType |
const | Data & data |
CEvaluationNodeFunction::CEvaluationNodeFunction | ( | const CEvaluationNodeFunction & | src | ) |
Copy constructor
const | CEvaluationNodeFunction & src |
CEvaluationNodeFunction::~CEvaluationNodeFunction | ( | ) | [virtual] |
Destructor
bool CEvaluationNodeFunction::compile | ( | const CEvaluationTree * | pTree | ) | [virtual] |
Compile a node;
const | CEvaluationTree * pTree |
Reimplemented from CEvaluationNode.
CEvaluationNode * CEvaluationNodeFunction::createNodeFromASTTree | ( | const ASTNode & | node | ) | [static] |
Creates a new CEvaluationNodeFunction from an ASTNode.
const | ASTNode* node |
std::string CEvaluationNodeFunction::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 CEvaluationNodeFunction::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 CEvaluationNodeFunction::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 CEvaluationNodeFunction::getDisplayString | ( | const CEvaluationTree * | pTree | ) | const [virtual] |
Retrieve the display string of the node and its eventual child nodes.
Reimplemented from CEvaluationNode.
std::string CEvaluationNodeFunction::getInfix | ( | ) | const [virtual] |
Retrieve the infix value of the node and its eventual child nodes.
Reimplemented from CEvaluationNode.
CEvaluationNode * CEvaluationNodeFunction::getLeft | ( | ) |
const CEvaluationNode * CEvaluationNodeFunction::getLeft | ( | ) | const |
bool CEvaluationNodeFunction::isBoolean | ( | ) | const [virtual] |
CEvaluationNode * CEvaluationNodeFunction::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 * CEvaluationNodeFunction::toAST | ( | const CCopasiDataModel * | pDataModel | ) | const [virtual] |
Create a new ASTNode corresponding to this FunctionNode.
Reimplemented from CEvaluationNode.
virtual const C_FLOAT64& CEvaluationNodeFunction::value | ( | ) | const [inline, virtual] |
void CEvaluationNodeFunction::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.