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

#include <CEvaluationNodeVector.h>

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

List of all members.

Public Types

enum  SubType { INVALID = 0x00FFFFFF, VECTOR = 0x00000000 }

Public Member Functions

 CEvaluationNodeVector ()
 CEvaluationNodeVector (const SubType &subType, const Data &data)
 CEvaluationNodeVector (const CEvaluationNodeVector &src)
virtual ~CEvaluationNodeVector ()
virtual const C_FLOAT64 & value () const
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
bool addChild (CCopasiNode< Data > *pChild, CCopasiNode< Data > *pAfter=NULL)
const std::vector
< CEvaluationNode * > & 
getVector () const

Static Public Member Functions

static CEvaluationNodecreateNodeFromASTTree (const ASTNode &node)

Detailed Description

This is the class for nodes presenting opertors used in an evaluation trees.


Member Enumeration Documentation

Enumeration of possible node types.

Enumerator:
INVALID 
VECTOR 

Constructor & Destructor Documentation

CEvaluationNodeVector::CEvaluationNodeVector ( )

Default constructor

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

Default constructor

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

Copy constructor

Parameters:
constCEvaluationNodeVector & src
CEvaluationNodeVector::~CEvaluationNodeVector ( ) [virtual]

Destructor


Member Function Documentation

bool CEvaluationNodeVector::addChild ( CCopasiNode< Data > *  pChild,
CCopasiNode< Data > *  pAfter = NULL 
) [virtual]

Add a child to a node. If pAfter == this the child will be inserted at the fornt of the list of children.

Parameters:
CCopasiNode<Data > * pChild
CCopasiNode<Data > * pAfter (default: NULL appended to the list of children)
Returns:
bool Success

Reimplemented from CCopasiNode< std::string >.

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

Creates a new CEvaluationNodeVector from an ASTNode.

Parameters:
constASTNode* node
Returns:
CEvaluationNode* return a pointer to the newly created node;
std::string CEvaluationNodeVector::getDisplay_C_String ( const CEvaluationTree pTree) const [virtual]

Retrieve the display string of the node and its eventual child nodes in C.

Returns:
const Data & value

Reimplemented from CEvaluationNode.

std::string CEvaluationNodeVector::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 CEvaluationNodeVector::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.

std::string CEvaluationNodeVector::getDisplayString ( const CEvaluationTree pTree) const [virtual]

Retrieve the display string of the node and its eventual child nodes.

Returns:
const Data & value

Reimplemented from CEvaluationNode.

std::string CEvaluationNodeVector::getInfix ( ) const [virtual]

Retrieve the infix value of the node and its eventual child nodes.

Returns:
const Data & value

Reimplemented from CEvaluationNode.

const std::vector< CEvaluationNode * > & CEvaluationNodeVector::getVector ( ) const

Retrieve the vector of evaluation nodes

Returns:
const std::vector< CEvaluationNode * > & vector
ASTNode * CEvaluationNodeVector::toAST ( const CCopasiDataModel pDataModel) const [virtual]

Create a new ASTNode corresponding to this choice node.

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

Reimplemented from CEvaluationNode.

const C_FLOAT64 & CEvaluationNodeVector::value ( ) const [virtual]

Retrieve the value of the node

Returns:
const C_FLOAT64 & value

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