#include <CExpression.h>
List of all members.
Constructor & Destructor Documentation
CExpression::CExpression |
( |
const std::string & |
name = "Expression" , |
|
|
const CCopasiContainer * |
pParent = NULL |
|
) |
| |
Default constructor
- Parameters:
-
const | std::string & name (default: "Expression") |
const | CCopasiContainer * pParent (default: NULL) |
Copy constructor
- Parameters:
-
CExpression::~CExpression |
( |
| ) |
[virtual] |
Member Function Documentation
const C_FLOAT64 & CExpression::calcValue |
( |
| ) |
[virtual] |
Calculates the value of the function
- Returns:
- const C_FLOAT64 & result
Compile the evaluation tree.
- Parameters:
-
- Returns:
- bool success
Creates the corresponding initial expression for the given expression by converting each transient value to the corresponding initial value.
- Parameters:
-
- Returns:
- CExpression * pInitialExpression
std::string CExpression::getDisplay_C_String |
( |
| ) |
const |
Retrieve the display string in C syntax.
std::string CExpression::getDisplay_MMD_String |
( |
| ) |
const |
Retrieve the display string in Berkeley Madonna syntax.
std::string CExpression::getDisplay_XPP_String |
( |
| ) |
const |
Retrieve the display string in XPPAUT syntax.
const std::string & CExpression::getDisplayString |
( |
| ) |
const |
Retrieve the human readable display string. Note, the expression must be compiled for this return a displayable string.
- Returns:
- const std::string & displayString
const std::vector< CCopasiContainer * > & CExpression::getListOfContainer |
( |
| ) |
const |
Retrieve the list of container used for compile
- Returns:
- const std::vector< CCopasiContainer * > & listOfContainer
Retrieve a pointer to the object defined by CN. This method may only be called during compile() since the list mpListOfContainer is only valid then.
- Parameters:
-
- Returns:
- const CCopasiObject * value
void CExpression::refresh |
( |
| ) |
|
Refresh the value of the expression
void CExpression::setBooleanRequired |
( |
const bool & |
booleanRequired | ) |
|
Set whether this a boolean expression or not
bool CExpression::setInfix |
( |
const std::string & |
infix | ) |
[virtual] |
Set the infix description of the tree and compile it.
- Parameters:
-
- Returns:
- bool success
Reimplemented from CEvaluationTree.
bool CExpression::updateInfix |
( |
| ) |
|
This method performa an infix update if a referenced object has been renamed
- Returns:
- bool success
void CExpression::writeMathML |
( |
std::ostream & |
out, |
|
|
bool |
fullExpand, |
|
|
unsigned C_INT32 |
l |
|
) |
| const |
Write display mathml of the expression into the ostream "out" level specifies indentation fullExpand==true means function calls are expanded
Member Data Documentation
Human readable display string.
Pointer to the list of containers used for compilation.
The documentation for this class was generated from the following files: