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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
|
// file : odb/semantics/fundamental.hxx
// author : Boris Kolpackov <boris@codesynthesis.com>
// copyright : Copyright (c) 2009-2010 Code Synthesis Tools CC
// license : GNU GPL v2; see accompanying LICENSE file
#ifndef ODB_SEMANTICS_FUNDAMENTAL_HXX
#define ODB_SEMANTICS_FUNDAMENTAL_HXX
#include <semantics/elements.hxx>
namespace semantics
{
//
// Fundamental C++ types.
//
class fund_type: public type {};
struct fund_void: fund_type
{
fund_void (): node (path ("<fundamental>"), 0, 0) {}
};
struct fund_bool: fund_type
{
fund_bool (): node (path ("<fundamental>"), 0, 0) {}
};
//
// Integral.
//
struct fund_char: fund_type
{
fund_char (): node (path ("<fundamental>"), 0, 0) {}
};
struct fund_wchar: fund_type
{
fund_wchar (): node (path ("<fundamental>"), 0, 0) {}
};
struct fund_signed_char: fund_type
{
fund_signed_char (): node (path ("<fundamental>"), 0, 0) {}
};
struct fund_unsigned_char: fund_type
{
fund_unsigned_char (): node (path ("<fundamental>"), 0, 0) {}
};
struct fund_short: fund_type
{
fund_short (): node (path ("<fundamental>"), 0, 0) {}
};
struct fund_unsigned_short: fund_type
{
fund_unsigned_short (): node (path ("<fundamental>"), 0, 0) {}
};
struct fund_int: fund_type
{
fund_int (): node (path ("<fundamental>"), 0, 0) {}
};
struct fund_unsigned_int: fund_type
{
fund_unsigned_int (): node (path ("<fundamental>"), 0, 0) {}
};
struct fund_long: fund_type
{
fund_long (): node (path ("<fundamental>"), 0, 0) {}
};
struct fund_unsigned_long: fund_type
{
fund_unsigned_long (): node (path ("<fundamental>"), 0, 0) {}
};
struct fund_long_long: fund_type
{
fund_long_long (): node (path ("<fundamental>"), 0, 0) {}
};
struct fund_unsigned_long_long: fund_type
{
fund_unsigned_long_long (): node (path ("<fundamental>"), 0, 0) {}
};
//
// Real.
//
struct fund_float: fund_type
{
fund_float (): node (path ("<fundamental>"), 0, 0) {}
};
struct fund_double: fund_type
{
fund_double (): node (path ("<fundamental>"), 0, 0) {}
};
struct fund_long_double: fund_type
{
fund_long_double (): node (path ("<fundamental>"), 0, 0) {}
};
}
#endif // ODB_SEMANTICS_FUNDAMENTAL_HXX
|