copasi API
0.1
|
#include <CEvaluationNodeConstant.h>
Public Types | |
enum | SubType { INVALID = 0x00FFFFFF, PI = 0x00000000, EXPONENTIALE = 0x00000001, TRUE = 0x00000002, FALSE = 0x00000003, _INFINITY = 0x00000004, _NaN = 0x00000005 } |
Public Member Functions | |
CEvaluationNodeConstant (const SubType &subType, const Data &data) | |
CEvaluationNodeConstant (const CEvaluationNodeConstant &src) | |
virtual | ~CEvaluationNodeConstant () |
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 class for nodes presenting Constants used in an evaluation trees
Default constructor
const | SubType & subType |
const | Data & data |
CEvaluationNodeConstant::CEvaluationNodeConstant | ( | const CEvaluationNodeConstant & | src | ) |
Copy constructor
const | CEvaluationNodeConstant & src |
CEvaluationNodeConstant::~CEvaluationNodeConstant | ( | ) | [virtual] |
Destructor
CEvaluationNode * CEvaluationNodeConstant::createNodeFromASTTree | ( | const ASTNode & | node | ) | [static] |
Create a new operator node from an ASTNode tree.
const | ASTNode* node |
std::string CEvaluationNodeConstant::getDisplay_C_String | ( | const CEvaluationTree * | pTree | ) | const [virtual] |
Retrieve the display string of the node and its eventual child nodes. in C format.
Reimplemented from CEvaluationNode.
std::string CEvaluationNodeConstant::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 CEvaluationNodeConstant::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.
bool CEvaluationNodeConstant::isBoolean | ( | ) | const [virtual] |
ASTNode * CEvaluationNodeConstant::toAST | ( | const CCopasiDataModel * | pDataModel | ) | const [virtual] |
Create a new ASTNode corresponding to this ConstantNode.
Reimplemented from CEvaluationNode.
void CEvaluationNodeConstant::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.