LRDE Tiger Compiler  1.34a $Id: 7fef12e1f5fa43449d667a0eec1d837c40fc1202 $
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
visitor.hh
Go to the documentation of this file.
1 
6 #ifndef TREE_VISITOR_HH
7 # define TREE_VISITOR_HH
8 
9 # include <misc/select-const.hh>
10 # include <tree/fwd.hh>
11 
12 namespace tree
13 {
14 
15  template <template <typename> class Const>
16  class GenVisitor
17  {
20  public:
22  virtual ~GenVisitor();
25  public:
27  virtual void operator()(typename Const<ProcFrag>::type& a);
29  virtual void operator()(typename Const<DataFrag>::type& a);
31  template <class E> void operator()(E* e);
32 
34  virtual void operator()(typename Const<Fragments>::type& fs);
35  };
36 
41 
42 } // namespace tree
43 
44 # include <tree/visitor.hxx>
45 
46 #endif // !TREE_VISITOR_HH