copasi API  0.1
Public Types | Public Member Functions | Static Public Member Functions
CEvaluationNodeConstant Class Reference

#include <CEvaluationNodeConstant.h>

Inheritance diagram for CEvaluationNodeConstant:
CEvaluationNode CCopasiNode< std::string >

List of all members.

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 CEvaluationNodecreateNodeFromASTTree (const ASTNode &node)

Detailed Description

This is class for nodes presenting Constants used in an evaluation trees


Member Enumeration Documentation

Enumeration of possible node types.

Enumerator:
INVALID 
PI 
EXPONENTIALE 
TRUE 
FALSE 
_INFINITY 
_NaN 

Constructor & Destructor Documentation

CEvaluationNodeConstant::CEvaluationNodeConstant ( const SubType subType,
const Data data 
)

Default constructor

Parameters:
constSubType & subType
constData & data
CEvaluationNodeConstant::CEvaluationNodeConstant ( const CEvaluationNodeConstant src)

Copy constructor

Parameters:
constCEvaluationNodeConstant & src
CEvaluationNodeConstant::~CEvaluationNodeConstant ( ) [virtual]

Destructor


Member Function Documentation

CEvaluationNode * CEvaluationNodeConstant::createNodeFromASTTree ( const ASTNode &  node) [static]

Create a new operator node from an ASTNode tree.

Parameters:
constASTNode* node
Returns:
CEvaluationNode* return a pointer to the newly created 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.

Returns:
const Data & value

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.

Returns:
const Data & value

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.

Returns:
const Data & value

Reimplemented from CEvaluationNode.

bool CEvaluationNodeConstant::isBoolean ( ) const [virtual]

Check whether the result is Boolean

Returns:
bool isBoolean

Reimplemented from CEvaluationNode.

ASTNode * CEvaluationNodeConstant::toAST ( const CCopasiDataModel pDataModel) const [virtual]

Create a new ASTNode corresponding to this ConstantNode.

Returns:
ASTNode* return a pointer to the newly created node;

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.


The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines