blob: e93fa976e7e0ba762fcb4856710393ee3ba473a9 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
|
// file : CCF/CIDL/Traversal/Composition.hpp
// author : Boris Kolpackov <boris@dre.vanderbilt.edu>
// cvs-id : $Id$
#ifndef CCF_CIDL_TRAVERSAL_COMPOSITION_HPP
#define CCF_CIDL_TRAVERSAL_COMPOSITION_HPP
#include "CCF/CIDL/SemanticGraph/Composition.hpp"
#include "CCF/CIDL/Traversal/Elements.hpp"
namespace CCF
{
namespace CIDL
{
namespace Traversal
{
template <typename T>
struct CompositionTemplate : ScopeTemplate<T>
{
virtual void
traverse (T&);
virtual void
pre (T&);
virtual void
name (T&);
virtual void
post (T&);
};
typedef
CompositionTemplate <SemanticGraph::Composition>
Composition;
typedef
CompositionTemplate <SemanticGraph::EntityComposition>
EntityComposition;
typedef
CompositionTemplate <SemanticGraph::ProcessComposition>
ProcessComposition;
typedef
CompositionTemplate <SemanticGraph::ServiceComposition>
ServiceComposition;
typedef
CompositionTemplate <SemanticGraph::SessionComposition>
SessionComposition;
}
}
}
#include "CCF/CIDL/Traversal/Composition.tpp"
#endif // CCF_CIDL_TRAVERSAL_COMPOSITION_HPP
|