LRDE Tiger Compiler  1.34a $Id: 7fef12e1f5fa43449d667a0eec1d837c40fc1202 $
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
visitor.hxx
Go to the documentation of this file.
1 
6 #ifndef AST_VISITOR_HXX
7 # define AST_VISITOR_HXX
8 
9 # include <ast/visitor.hh>
10 # include <ast/ast.hh>
11 
12 namespace ast
13 {
14  template <template <typename> class Const>
16  {
17  }
18 
19  template <template <typename> class Const>
20  void
21  GenVisitor<Const>::operator()(typename Const<ast::Ast>::type& e)
22  {
23  e.accept(*this);
24  }
25 
26  template <template <typename> class Const>
27  template <class E>
28  void
30  {
31  e->accept(*this);
32  }
33 
34  template <template <typename> class Const>
35  template <typename E>
36  void
38  {
39  if (e)
40  e->accept(*this);
41  }
42 
43 } // namespace ast
44 
45 #endif // !AST_VISITOR_HXX