BALL
1.4.2
Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Groups
Pages
include
BALL
CONCEPT
visitor.h
Go to the documentation of this file.
1
// -*- Mode: C++; tab-width: 2; -*-
2
// vi: set ts=2:
3
//
4
5
#ifndef BALL_CONCEPT_VISITOR_H
6
#define BALL_CONCEPT_VISITOR_H
7
8
#ifndef BALL_COMMON_H
9
# include <
BALL/common.h
>
10
#endif
11
12
namespace
BALL
13
{
14
21
template
<
typename
Host>
22
class
Visitor
23
{
24
public
:
25
31
Visitor
()
32
;
33
36
Visitor
(
const
Visitor
& visitor)
37
;
38
41
virtual
~Visitor
()
42
;
43
45
50
virtual
void
visit
(Host &) = 0;
51
52
virtual
void
dummy
();
53
};
55
56
template
<
typename
T>
57
void
Visitor<T>::dummy
(){}
58
59
template
<
typename
T>
60
BALL_INLINE
61
Visitor<T>::Visitor
()
62
63
{
64
}
65
66
template
<
typename
Host>
67
BALL_INLINE
68
Visitor<Host>::Visitor
(
const
Visitor<Host>
&
/* visitor */
)
69
70
{
71
}
72
73
template
<
typename
T>
74
Visitor<T>::~Visitor
()
75
76
{
77
}
78
}
79
80
#endif // BALL_CONCEPT_VISITOR_H
Generated by
1.8.3.1