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
named.hxx
Go to the documentation of this file.
1
5
#ifndef TYPE_NAMED_HXX
6
# define TYPE_NAMED_HXX
7
8
# include <
type/named.hh
>
9
# include <
misc/contract.hh
>
10
11
namespace
type
12
{
13
14
inline
15
Named::Named
(
misc::symbol
name)
16
: name_(name)
17
, type_(nullptr)
18
{}
19
20
inline
21
Named::Named
(
misc::symbol
name,
const
Type
* type)
22
: name_(name)
23
{
24
type_set
(type);
25
}
26
27
inline
const
Type
*
28
Named::type_get
()
const
29
{
30
return
type_
;
31
}
32
33
inline
void
34
Named::type_set
(
const
Type
* type)
35
{
36
type_
= type;
37
}
38
39
inline
void
40
Named::type_set
(
const
Type
* type)
const
41
{
42
type_
= type;
43
}
44
45
inline
misc::symbol
46
Named::name_get
()
const
47
{
48
return
name_
;
49
}
50
51
inline
void
52
Named::name_set
(
const
misc::symbol
& name)
53
{
54
name_
= name;
55
}
56
57
inline
const
Type
&
58
Named::actual
()
const
59
{
60
// FIXME: Some code was deleted here.
61
}
62
63
}
// namespace type
64
65
#endif // !TYPE_NAMED_HXX
type
named.hxx
Generated on Wed Mar 5 2014 15:47:37 for LRDE Tiger Compiler by
1.8.1.2