roadrunner  2.6.0
Fast simulator for SBML models
AssignmentRuleEvaluator.h
1 /*
2  * AssignmentRuleEvaluator.h
3  *
4  * Created on: Jul 3, 2013
5  * Author: andy
6  */
7 
8 #ifndef LLVMAssignmentRuleEvaluatorH
9 #define LLVMAssignmentRuleEvaluatorH
10 
11 #include "SymbolForest.h"
12 
13 #include <sbml/Model.h>
14 #include <sbml/SBMLVisitor.h>
15 #include <sbml/AssignmentRule.h>
16 
17 namespace rrllvm
18 {
19 
24 class AssignmentRuleEvaluator : public libsbml::SBMLVisitor
25 {
26  using libsbml::SBMLVisitor::visit;
27 
28 public:
30 
31  void evaluate(const libsbml::Model& model);
32 
33  virtual bool visit (const libsbml::AssignmentRule &x);
34 
35 protected:
36  SymbolForest &symbols;
37 };
38 
39 } /* namespace rr */
40 #endif /* LLVMAssignmentRuleEvaluatorH */
Attaches to an existing symbol forest and applies any asigment rule found in the model to the forest.
Definition: AssignmentRuleEvaluator.h:25
Similar to a symbol table, except instead of a name / value, we have a name / tree,...
Definition: SymbolForest.h:37