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 TREE_VISITOR_HXX
7
# define TREE_VISITOR_HXX
8
9
# include <
misc/algorithm.hh
>
10
# include <
tree/fragments.hh
>
11
# include <
tree/visitor.hh
>
12
13
namespace
tree
14
{
15
16
template
<
template
<
typename
>
class
Const>
17
GenVisitor<Const>::~GenVisitor
()
18
{}
19
20
21
template
<
template
<
typename
>
class
Const
>
22
template
<
class
E>
23
void
24
GenVisitor<Const>::operator()
(E* e)
25
{
26
e->accept(*
this
);
27
}
28
29
30
template
<
template
<
typename
>
class
Const
>
31
void
32
GenVisitor<Const>::
33
operator()
(
typename
Const<ProcFrag>::type
&)
34
{
35
}
36
37
template
<
template
<
typename
>
class
Const
>
38
void
39
GenVisitor<Const>::
40
operator()
(
typename
Const<DataFrag>::type
&)
41
{
42
}
43
44
template
<
template
<
typename
>
class
Const
>
45
void
46
GenVisitor<Const>::
47
operator()
(
typename
Const<Fragments>::type
& frags)
48
{
49
misc::for_each
(frags, *
this
);
50
}
51
52
}
// namespace tree
53
54
#endif // !TREE_VISITOR_HXX
tree
visitor.hxx
Generated on Wed Mar 5 2014 15:47:36 for LRDE Tiger Compiler by
1.8.1.2