Main Page   Namespace List   Class Hierarchy   Compound List   File List   Compound Members   File Members  

formula_visitor.cc

Go to the documentation of this file.
00001 // AUTOMATICALLY GENERATED -- DO NOT EDIT!         -*- c++ -*-
00002 
00003 #include "formula_visitor.h"
00004 #include "formula_visitor_i.h"
00005 
00006 
00007 #line 38 "formula_visitor.cpp"
00008 
00009 // 
00010 // class Formula_visitor
00011 // 
00012 
00016 void 
00017 Formula_visitor::visit_formula(Formula& f)
00018 {
00019   return f.Accept (*this);
00020 }
00021 
00022 #line 51 "formula_visitor.cpp"
00023 
00027 void 
00028 Formula_visitor::recurse(std::vector<Formula*> v)
00029 {
00030   for (std::vector<Formula*>::iterator i = v.begin();
00031        i != v.end();
00032        ++i)
00033     {
00034       visit_formula (**i);
00035     }
00036 }
00037 
00038 #line 65 "formula_visitor.cpp"
00039 
00040 // 
00041 // class Formula_basic_visitor
00042 // 
00043 
00048 void
00049 Formula_basic_visitor::default_action(Formula&, std::vector<Formula*> v)
00050 {
00051   return recurse (v);
00052 }
00053 
00054 #line 79 "formula_visitor.cpp"
00055 
00056 
00057 void
00058 Formula_basic_visitor::visit(True& f)
00059 {
00060   return default_action (f, Formula::vec());
00061 }
00062 
00063 #line 86 "formula_visitor.cpp"
00064 
00065 
00066 void
00067 Formula_basic_visitor::visit(False& f)
00068 {
00069   return default_action (f, Formula::vec());
00070 }
00071 
00072 #line 93 "formula_visitor.cpp"
00073 
00074 
00075 void
00076 Formula_basic_visitor::visit(Not& f)
00077 {
00078   return default_action (f, Formula::vec(f.v1));
00079 }
00080 
00081 #line 100 "formula_visitor.cpp"
00082 
00083 
00084 void
00085 Formula_basic_visitor::visit(And& f)
00086 {
00087   default_action (f, f.v1);
00088 }
00089 
00090 #line 107 "formula_visitor.cpp"
00091 
00092 
00093 void
00094 Formula_basic_visitor::visit(Or& f)
00095 {
00096   default_action (f, f.v1);
00097 }
00098 
00099 #line 114 "formula_visitor.cpp"
00100 
00101 
00102 void
00103 Formula_basic_visitor::visit(Implies& f)
00104 {
00105   default_action (f, Formula::vec(f.v1, f.v2));
00106 }
00107 
00108 #line 121 "formula_visitor.cpp"
00109 
00110 
00111 
00112 void
00113 Formula_basic_visitor::visit(Iff& f)
00114 {
00115   default_action (f, Formula::vec(f.v1, f.v2));
00116 }

Generated on Mon Feb 10 17:32:49 2003 for VFiasco Semantics Compiler by doxygen1.2.15