#include <CNodeK.h>
◆ CNodeK() [1/5]
◆ CNodeK() [2/5]
      
        
          | CNodeK::CNodeK  | 
          ( | 
          const CNodeK &  | 
          src | ) | 
           | 
        
      
 
 
◆ CNodeK() [3/5]
      
        
          | CNodeK::CNodeK  | 
          ( | 
          char  | 
          type,  | 
        
        
           | 
           | 
          char  | 
          subtype  | 
        
        
           | 
          ) | 
           |  | 
        
      
 
 
◆ CNodeK() [4/5]
      
        
          | CNodeK::CNodeK  | 
          ( | 
          const std::string &  | 
          name | ) | 
           | 
        
      
 
Constructor for identifier 
- Parameters
 - 
  
  
 
References CONSTRUCTOR_TRACE, mConstant, mIndex, mLeft, mName, mOldIndex, mRight, mSubtype, mType, N_IDENTIFIER, and N_NOP.
 
 
◆ CNodeK() [5/5]
◆ ~CNodeK()
◆ cleanup()
◆ getConstant()
Retrieving value of a node 
- Returns
 - C_FLOAT64 
 
References mConstant.
 
 
◆ getExplicitFunctionString()
      
        
          | 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 
 
 
 
◆ getIndex()
Retrieving index the name of a node 
- Returns
 - C_INT32 
 
References mIndex.
 
 
◆ getLeft()
      
        
          | CNodeK & CNodeK::getLeft  | 
          ( | 
           | ) | 
           const | 
        
      
 
 
◆ getName()
      
        
          | std::string CNodeK::getName  | 
          ( | 
           | ) | 
           const | 
        
      
 
 
◆ getRight()
      
        
          | CNodeK & CNodeK::getRight  | 
          ( | 
           | ) | 
           const | 
        
      
 
Retrieving mName the name of a node 
- Returns
 - string 
 
References fatalError, and mRight.
 
 
◆ getSubtype()
      
        
          | char CNodeK::getSubtype  | 
          ( | 
           | ) | 
           const | 
        
      
 
Retrieving mSubtype the subtype of a node 
- Returns
 - char 
 
References mSubtype.
 
 
◆ getType()
      
        
          | char CNodeK::getType  | 
          ( | 
           | ) | 
           const | 
        
      
 
Retrieving mType the type of a node 
- Returns
 - char 
 
References mType.
 
 
◆ isIdentifier()
      
        
          | C_INT16 CNodeK::isIdentifier  | 
          ( | 
           | ) | 
           const | 
        
      
 
 
◆ isLeftValid()
      
        
          | C_INT16 CNodeK::isLeftValid  | 
          ( | 
           | ) | 
           const | 
        
      
 
This checks whether mLeft points to a valid CNodeK 
- Returns
 - int 1 or 0 
 
References mLeft.
 
 
◆ isNumber()
This checks whether the node is a number (mType = N_NUMBER) 
- Returns
 - int 1 or 0 
 
References mType, and N_NUMBER.
 
 
◆ isOperator()
      
        
          | C_INT16 CNodeK::isOperator  | 
          ( | 
           | ) | 
           const | 
        
      
 
This checks whether the node is a operator (mType = N_OPERATOR) 
- Returns
 - int 1 or 0 
 
References mType, and N_OPERATOR.
 
 
◆ isRightValid()
      
        
          | C_INT16 CNodeK::isRightValid  | 
          ( | 
           | ) | 
           const | 
        
      
 
This checks whether mRight points to a valid CNodeK 
- Returns
 - int 1 or 0 
 
References mRight.
 
 
◆ leftPrecedence()
      
        
          | C_INT16 CNodeK::leftPrecedence  | 
          ( | 
           | ) | 
           const | 
        
      
 
 
◆ load()
Loads an object with data coming from a CReadConfig object. (CReadConfig object reads an input stream) 
- Parameters
 - 
  
  
 
- Returns
 - Fail 
 
References C_INT32, CReadConfig::getVariable(), mConstant, mIndex, mName, mSubtype, mType, N_IDENTIFIER, N_KCONSTANT, N_MODIFIER, N_NUMBER, N_PRODUCT, N_SUBSTRATE, and CReadConfig::SEARCH.
 
 
◆ rightPrecedence()
      
        
          | C_INT16 CNodeK::rightPrecedence  | 
          ( | 
           | ) | 
           const | 
        
      
 
 
◆ setConstant()
      
        
          | void CNodeK::setConstant  | 
          ( | 
          C_FLOAT64 &  | 
          constant | ) | 
           | 
        
      
 
Setting the value of a number 
- Parameters
 - 
  
  
 
References mConstant.
 
 
◆ setIndex()
      
        
          | void CNodeK::setIndex  | 
          ( | 
          C_INT32  | 
          index | ) | 
           | 
        
      
 
Setting the index of an identifier 
- Parameters
 - 
  
  
 
References mIndex.
 
 
◆ setLeft() [1/2]
      
        
          | void CNodeK::setLeft  | 
          ( | 
          CNodeK &  | 
          left | ) | 
           | 
        
      
 
Setting mLeft the pointer to the left branch 
- Parameters
 - 
  
  
 
References mLeft.
 
 
◆ setLeft() [2/2]
      
        
          | void CNodeK::setLeft  | 
          ( | 
          CNodeK *  | 
          pleft | ) | 
           | 
        
      
 
Setting mLeft the pointer to the left branch 
- Parameters
 - 
  
  
 
References mLeft.
 
 
◆ setName()
      
        
          | void CNodeK::setName  | 
          ( | 
          const std::string &  | 
          name | ) | 
           | 
        
      
 
Setting mName the name of an identifier 
- Parameters
 - 
  
  
 
References mName.
 
 
◆ setOldIndex()
      
        
          | void CNodeK::setOldIndex  | 
          ( | 
          C_INT32  | 
          oldindex | ) | 
           | 
        
      
 
Setting the old index (Gepasi format, each type is indexed separately) 
- Parameters
 - 
  
  
 
References mOldIndex.
 
 
◆ setRight() [1/2]
      
        
          | void CNodeK::setRight  | 
          ( | 
          CNodeK &  | 
          right | ) | 
           | 
        
      
 
Setting mRight the pointer to the right branch 
- Parameters
 - 
  
  
 
References mRight.
 
 
◆ setRight() [2/2]
      
        
          | void CNodeK::setRight  | 
          ( | 
          CNodeK *  | 
          pright | ) | 
           | 
        
      
 
Setting mRight the pointer to the right branch 
- Parameters
 - 
  
  
 
References mRight.
 
 
◆ setSubtype()
      
        
          | void CNodeK::setSubtype  | 
          ( | 
          const char  | 
          subtype | ) | 
           | 
        
      
 
Setting mSubtype the subtype of a node 
- Parameters
 - 
  
  
 
References mSubtype.
 
 
◆ setType()
      
        
          | void CNodeK::setType  | 
          ( | 
          const char  | 
          ype | ) | 
           | 
        
      
 
Setting mType the subtype of a node 
- Parameters
 - 
  
  
 
References mType.
 
 
◆ value()
This calculates the value of this sub-tree (ie with this node as root) 
- Parameters
 - 
  
  
 
- Returns
 - C_FLOAT64 
 
 
 
◆ writeMathML()
      
        
          | void CNodeK::writeMathML  | 
          ( | 
          std::ostream &  | 
          out,  | 
        
        
           | 
           | 
          C_INT32  | 
          level  | 
        
        
           | 
          ) | 
           |  const | 
        
      
 
 
◆ attribute1
WHAT IS THIS FOR??? PLEASE ADD COMMENT! 
 
 
◆ mConstant
◆ mExplicitFunction
  
  
      
        
          | std::string CNodeK::mExplicitFunction | 
         
       
   | 
  
private   | 
  
 
The explicit function string 
 
 
◆ mIndex
◆ mLeft
◆ mName
  
  
      
        
          | std::string CNodeK::mName | 
         
       
   | 
  
private   | 
  
 
 
◆ mOldIndex
◆ mRight
◆ mSubtype
The subtype of a node. for type N_FUNCTION one of: N_LOG10, N_LOG, N_EXP, N_SIN, N_COS, N_RND, N_GAUSS, N_BOLTZ for type N_IDENTIFIER one of:N_SUBSTRATE, N_PRODUCT, N_MODIFIER, N_KCONSTANT for type N_OPERATOR one of: + - * / ^ () ... 
Referenced by CNodeK(), getSubtype(), leftPrecedence(), load(), rightPrecedence(), and setSubtype().
 
 
◆ mType
The type of the node. One of N_ROOT, N_OPERATOR, N_IDENTIFIER, N_FUNCTION, N_NUMBER 
Referenced by CNodeK(), getType(), isIdentifier(), isNumber(), isOperator(), leftPrecedence(), load(), rightPrecedence(), and setType().
 
 
The documentation for this class was generated from the following files: