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
attribute.hxx
Go to the documentation of this file.
1
5
#ifndef TYPE_ATTRIBUTE_HXX
6
# define TYPE_ATTRIBUTE_HXX
7
8
namespace
type
9
{
10
11
inline
12
Attribute::Attribute
(
const
ast::VarDec
* def)
13
: def_(def)
14
{}
15
16
inline
17
misc::symbol
18
Attribute::name_get
()
const
19
{
20
return
def_
->
name_get
();
21
}
22
23
inline
24
const
Type
&
25
Attribute::type_get
()
const
26
{
27
return
*
def_
->type_get();
28
}
29
30
inline
31
const
ast::VarDec
*
32
Attribute::def_get
()
const
33
{
34
return
def_
;
35
}
36
37
inline
38
void
39
Attribute::def_set
(
const
ast::VarDec
* def)
40
{
41
def_
= def;
42
}
43
44
inline
45
std::ostream&
46
operator<<
(std::ostream& ostr,
const
Attribute
& a)
47
{
48
return
a.
dump
(ostr);
49
}
50
51
}
// namespace type
52
53
#endif // !TYPE_ATTRIBUTE_HXX
type
attribute.hxx
Generated on Wed Mar 5 2014 15:47:37 for LRDE Tiger Compiler by
1.8.1.2