#include <CEvaluationTree.h>
List of all members.
Member Enumeration Documentation
The valid types of a function 
- Enumerator: 
- 
| Function |  |  | MassAction |  |  | PreDefined |  |  | UserDefined |  |  | Expression |  |  
 
 
 
Constructor & Destructor Documentation
      
        
          | CEvaluationTree::CEvaluationTree | ( | const std::string & | name = "NoName", | 
        
          |  |  | const CCopasiContainer * | pParent = NULL, | 
        
          |  |  | const Type & | type = Function | 
        
          |  | ) |  |  | 
      
 
Default constructor 
- Parameters:
- 
  
  
 
 
Copy constructor 
- Parameters:
- 
  
  
 
 
      
        
          | CEvaluationTree::~CEvaluationTree | ( |  | ) |  [virtual] | 
      
 
 
Member Function Documentation
      
        
          | bool CEvaluationTree::calls | ( | std::set< std::string > & | list | ) | const | 
      
 
Check whether the evaluation tree calls any tree in the list 
- Parameters:
- 
  
    | std::set< | std::string > & list |  
 
- Returns:
- bool calls 
 
 
      
        
          | bool CEvaluationTree::compile | ( |  | ) |  [virtual] | 
      
 
Compile the evaluation tree. 
Reimplemented in CMassAction.
 
 
      
        
          | bool CEvaluationTree::compileNodes | ( |  | ) |  [protected] | 
      
 
Compile the individual nodes. 
- Returns:
- bool success 
 
 
      
        
          | bool CEvaluationTree::completeEvaluationTreeList | ( | std::vector< CEvaluationTree * > & | list, | 
        
          |  |  | const unsigned C_INT32 & | added = 0 | 
        
          |  | ) |  |  [static] | 
      
 
Complete the list of evaluation tree such that all called trees are includes. 
- Parameters:
- 
  
    | std::vector< | CEvaluationTree * > & list |  | const | unsigned C_INT32 & added (Default: list.size()) |  
 
- Returns:
- bool success 
 
 
      
        
          | CEvaluationNode * CEvaluationTree::convertASTNode | ( | const ASTNode & | node | ) |  [static] | 
      
 
Converts an SBML ASTNode to the corresponding CEvaluationNode tree. 
- Parameters:
- 
  
  
- Returns:
- CEvaluationNode* 
 
 
Copy an EvaluationTree of the specified type. Note: the returned object has to be released after use with delete. 
- Parameters:
- 
  
    | const | EvaluationTree & src |  
 
- Returns:
- EvaluationTree * pEvaluationTree 
 
 
Create an EvaluationTree of the specified type. Note: the returned object has to be released after use with delete. 
- Parameters:
- 
  
  
- Returns:
- EvaluationTree * pEvaluationTree 
 
 
      
        
          | bool CEvaluationTree::dependsOnTree | ( | const std::string & | name | ) | const | 
      
 
Checks whether the tree has a call node referring to the expression with the given name 
- Parameters:
- 
  
  
- Returns:
- bool dependsOn 
 
 
      
        
          | std::set< const CCopasiObject * > CEvaluationTree::getDeletedObjects | ( |  | ) | const | 
      
 
Retrieve the list of deleted objects. 
- Returns:
- std::set< const CCopasiObject * > deletedObjects 
 
 
      
        
          | std::string::size_type CEvaluationTree::getErrorPosition | ( |  | ) | const | 
      
 
Retrieve the position of the error in the string description. std::string::npos indicates no error. 
- Returns:
- std::string::size_type errorPosition 
 
 
      
        
          | const std::string & CEvaluationTree::getInfix | ( |  | ) | const | 
      
 
Retrieve the infix description of the tree 
- Returns:
- const std::string & infix 
 
 
      
        
          | const std::string & CEvaluationTree::getKey | ( |  | ) | const  [virtual] | 
      
 
Retrieves the key of the EvaluationTree 
- Returns:
- const std::string & key 
Reimplemented from CCopasiObject.
 
 
      
        
          | const std::vector< CEvaluationNode * > & CEvaluationTree::getNodeList | ( |  | ) | const | 
      
 
Retrieve the list of nodes 
- Returns:
- const std::vector< CEvaluationNode * > & nodeList; 
 
 
Returns the root node of the tree. 
 
 
Returns the root node of the tree. 
 
 
      
        
          | const std::string & CEvaluationTree::getSBMLId | ( |  | ) | const | 
      
 
Returns a reference to the SBML Id. 
 
 
      
        
          | unsigned C_INT32 CEvaluationTree::getVariableIndex | ( | const std::string & | name | ) | const  [virtual] | 
      
 
Retrieve the index to the value of the named variable. 
- Parameters:
- 
  
  
- Returns:
- unsigned C_INT32 
Reimplemented in CFunction.
 
 
      
        
          | const C_FLOAT64 & CEvaluationTree::getVariableValue | ( | const unsigned C_INT32 & | index | ) | const  [virtual] | 
      
 
Retrieve the value of the indexed variable 
- Parameters:
- 
  
    | const | unsigned C_INT32 & index |  
 
- Returns:
- const C_FLOAT64 & variableValue 
Reimplemented in CFunction.
 
 
      
        
          | bool CEvaluationTree::hasCircularDependency | ( |  | ) | const | 
      
 
Check whether the the tree has circular dependencies. 
- Returns:
- bool hasCircularDependency 
 
 
      
        
          | bool CEvaluationTree::isBoolean | ( |  | ) | const | 
      
 
Check whether this function evaluates to a boolean value. 
- Returns:
- bool isBoolean 
 
 
      
        
          | bool CEvaluationTree::isUsable | ( |  | ) | const | 
      
 
Check whether this function is usable, i.e., properly defined 
- Returns:
- bool isUsable 
 
 
      
        
          | bool CEvaluationTree::parse | ( |  | ) |  [protected] | 
      
 
Parse the description 
- Returns:
- bool success 
 
 
      
        
          | bool CEvaluationTree::setInfix | ( | const std::string & | infix | ) |  [virtual] | 
      
 
 
Sets the root node of the tree. 
- Parameters:
- 
  
    | CEvaluationNode* | root node of the tree |  
 
- Returns:
- bool success 
 
 
      
        
          | void CEvaluationTree::setSBMLId | ( | const std::string & | id | ) |  | 
      
 
 
      
        
          | bool CEvaluationTree::setTree | ( | const ASTNode & | pRootNode | ) |  | 
      
 
Sets the complete tree from an SBML ASTNode. 
- Parameters:
- 
  
    | const | ASTNode& root node of the tree |  
 
- Returns:
- bool success 
 
 
Set the type of the function 
- Parameters:
- 
  
  
 
 
      
        
          | ASTNode * CEvaluationTree::toAST | ( | const CCopasiDataModel * | pDataModel | ) | const  [virtual] | 
      
 
Converts a CEvaluationTree to an ASTNode based tree. 
- Returns:
- ASTNode* root node of the tree. 
 
 
      
        
          | bool CEvaluationTree::updateTree | ( |  | ) |  | 
      
 
Updates the infix and the nodeList 
 
 
Member Data Documentation
Indicates whether the tree must evaluate to a boolean value. 
 
 
The infix representation of the expression 
 
 
A vector of nodes containing the result of parse. 
 
 
The root node of the tree. 
 
 
The id of the corresponding function in an SBML file. This value is either set upon importing an SBML file, or when the object is first exported to an SBML file. 
 
 
Value indicating whether this functions might be used in a model 
 
 
The last computed value of the tree; 
 
 
Initial value:
  {"userdefined", "predefined", "predefined", "userdefined", "userdefined", "userdefined", ""}
The string representation of valid types of a function 
 
 
Initial value:
  {"Function", "MassAction", "PreDefined", "UserDefined", "Expression", "Boolean", NULL}
The string representation of valid types of a function 
 
 
The documentation for this class was generated from the following files: