copasi API
0.1
|
#include <CEvaluationNodeLogical.h>
Public Types | |
enum | SubType { INVALID = 0x00FFFFFF, OR = 0x00000001, XOR = 0x00000002, AND = 0x00000003, EQ = 0x00000004, NE = 0x00000005, GT = 0x00000006, GE = 0x00000007, LT = 0x00000008, LE = 0x00000009 } |
Public Member Functions | |
CEvaluationNodeLogical (const SubType &subType, const Data &data) | |
CEvaluationNodeLogical (const CEvaluationNodeLogical &src) | |
virtual | ~CEvaluationNodeLogical () |
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 void | writeMathML (std::ostream &out, const std::vector< std::vector< std::string > > &env, bool expand=true, unsigned C_INT32 l=0) const |
Static Public Member Functions | |
static CEvaluationNode * | createNodeFromASTTree (const ASTNode &node) |
This is the class for nodes presenting opertors used in an evaluation trees.
Default constructor
const | SubType & subType |
const | Data & data |
CEvaluationNodeLogical::CEvaluationNodeLogical | ( | const CEvaluationNodeLogical & | src | ) |
Copy constructor
const | CEvaluationNodeLogical & src |
CEvaluationNodeLogical::~CEvaluationNodeLogical | ( | ) | [virtual] |
Destructor
bool CEvaluationNodeLogical::compile | ( | const CEvaluationTree * | pTree | ) | [virtual] |
Compile a node;
const | CEvaluationTree * pTree |
Reimplemented from CEvaluationNode.
CEvaluationNode * CEvaluationNodeLogical::createNodeFromASTTree | ( | const ASTNode & | node | ) | [static] |
Create a new operator node from an ASTNode tree.
const | ASTNode* node |
std::string CEvaluationNodeLogical::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 CEvaluationNodeLogical::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 CEvaluationNodeLogical::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 CEvaluationNodeLogical::getDisplayString | ( | const CEvaluationTree * | pTree | ) | const [virtual] |
Retrieve the display string of the node and its eventual child nodes.
Reimplemented from CEvaluationNode.
std::string CEvaluationNodeLogical::getInfix | ( | ) | const [virtual] |
Retrieve the infix value of the node and its eventual child nodes.
Reimplemented from CEvaluationNode.
bool CEvaluationNodeLogical::isBoolean | ( | ) | const [virtual] |
ASTNode * CEvaluationNodeLogical::toAST | ( | const CCopasiDataModel * | pDataModel | ) | const [virtual] |
Create a new ASTNode corresponding to this OperatorNode.
Reimplemented from CEvaluationNode.
virtual const C_FLOAT64& CEvaluationNodeLogical::value | ( | ) | const [inline, virtual] |
void CEvaluationNodeLogical::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.