LRDE Tiger Compiler
1.34a $Id: 7fef12e1f5fa43449d667a0eec1d837c40fc1202 $
Main Page
Namespaces
Classes
Files
File List
File Members
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>
15
GenVisitor<Const>::~GenVisitor
()
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
29
GenVisitor<Const>::operator()
(E* e)
30
{
31
e->accept(*
this
);
32
}
33
34
template
<
template
<
typename
>
class
Const>
35
template
<
typename
E>
36
void
37
GenVisitor<Const>::accept
(E* e)
38
{
39
if
(e)
40
e->accept(*
this
);
41
}
42
43
}
// namespace ast
44
45
#endif // !AST_VISITOR_HXX
ast
visitor.hxx
Generated on Wed Mar 5 2014 15:47:36 for LRDE Tiger Compiler by
1.8.1.2