#include <CNodeK.h>
List of all members.
Detailed Description
Constructor & Destructor Documentation
CNodeK::CNodeK |
( |
const CNodeK & |
src | ) |
|
Copy constructor
- Parameters:
-
CNodeK::CNodeK |
( |
char |
type, |
|
|
char |
subtype |
|
) |
| |
Constructor for operator
- Parameters:
-
const char | type |
const char | subtype |
CNodeK::CNodeK |
( |
const std::string & |
name | ) |
|
Constructor for identifier
- Parameters:
-
CNodeK::CNodeK |
( |
C_FLOAT64 |
constant | ) |
|
Constructor for a constant
- Parameters:
-
Member Function Documentation
C_FLOAT64 CNodeK::getConstant |
( |
| ) |
const |
Retrieving value of a node
- Returns:
- C_FLOAT64
std::string CNodeK::getExplicitFunctionString |
( |
const std::vector< std::vector< std::string > > & |
callParameterNames, |
|
|
const std::string & |
r |
|
) |
| |
Returns a string that contains the equation defined from this node downwards. The function contains explicit names of node identifiers, rather than the abstract symbol.
- Parameters:
-
const CCallParameters & | callParameterNames a vector of string pointers with identifier names |
const string & | r a suffix for parameter names (usually reaction number) |
- Returns:
- string
C_INT32 CNodeK::getIndex |
( |
| ) |
const |
Retrieving index the name of a node
- Returns:
- C_INT32
CNodeK & CNodeK::getLeft |
( |
| ) |
const |
Retrieving mLeft the left branch of a node
- Returns:
- CNodeK
std::string CNodeK::getName |
( |
| ) |
const |
Retrieving mName the name of a node
- Returns:
- string
CNodeK & CNodeK::getRight |
( |
| ) |
const |
Retrieving mName the name of a node
- Returns:
- string
char CNodeK::getSubtype |
( |
| ) |
const |
Retrieving mSubtype the subtype of a node
- Returns:
- char
char CNodeK::getType |
( |
| ) |
const |
Retrieving mType the type of a node
- Returns:
- char
C_INT16 CNodeK::isIdentifier |
( |
| ) |
const |
This checks whether the node is an identifier (mType = N_IDENTIFIER)
- Returns:
- int 1 or 0
C_INT16 CNodeK::isLeftValid |
( |
| ) |
const |
This checks whether mLeft points to a valid CNodeK
- Returns:
- int 1 or 0
C_INT16 CNodeK::isNumber |
( |
| ) |
const |
This checks whether the node is a number (mType = N_NUMBER)
- Returns:
- int 1 or 0
C_INT16 CNodeK::isOperator |
( |
| ) |
const |
This checks whether the node is a operator (mType = N_OPERATOR)
- Returns:
- int 1 or 0
C_INT16 CNodeK::isRightValid |
( |
| ) |
const |
This checks whether mRight points to a valid CNodeK
- Returns:
- int 1 or 0
C_INT16 CNodeK::leftPrecedence |
( |
| ) |
const |
This returns the left precedence value of a node
- Returns:
- int
Loads an object with data coming from a CReadConfig object. (CReadConfig object reads an input stream)
- Parameters:
-
- Returns:
- Fail
C_INT16 CNodeK::rightPrecedence |
( |
| ) |
const |
This returns the right precedence value of a node
- Returns:
- int
void CNodeK::setConstant |
( |
C_FLOAT64 & |
constant | ) |
|
Setting the value of a number
- Parameters:
-
void CNodeK::setIndex |
( |
C_INT32 |
index | ) |
|
Setting the index of an identifier
- Parameters:
-
void CNodeK::setLeft |
( |
CNodeK & |
left | ) |
|
Setting mLeft the pointer to the left branch
- Parameters:
-
void CNodeK::setLeft |
( |
CNodeK * |
pleft | ) |
|
Setting mLeft the pointer to the left branch
- Parameters:
-
void CNodeK::setName |
( |
const std::string & |
name | ) |
|
Setting mName the name of an identifier
- Parameters:
-
void CNodeK::setOldIndex |
( |
C_INT32 |
oldindex | ) |
|
Setting the old index (Gepasi format, each type is indexed separately)
- Parameters:
-
void CNodeK::setRight |
( |
CNodeK & |
right | ) |
|
Setting mRight the pointer to the right branch
- Parameters:
-
void CNodeK::setRight |
( |
CNodeK * |
pright | ) |
|
Setting mRight the pointer to the right branch
- Parameters:
-
void CNodeK::setSubtype |
( |
const char |
subtype | ) |
|
Setting mSubtype the subtype of a node
- Parameters:
-
void CNodeK::setType |
( |
const char |
ype | ) |
|
Setting mType the subtype of a node
- Parameters:
-
C_FLOAT64 CNodeK::value |
( |
const CCallParameters< C_FLOAT64 > & |
callParameters | ) |
const |
This calculates the value of this sub-tree (ie with this node as root)
- Parameters:
-
- Returns:
- C_FLOAT64
void CNodeK::writeMathML |
( |
std::ostream & |
out, |
|
|
C_INT32 |
level |
|
) |
| const |
The documentation for this class was generated from the following files: