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
field.hxx
Go to the documentation of this file.
1
5
#ifndef TYPE_FIELD_HXX
6
# define TYPE_FIELD_HXX
7
8
# include <
type/field.hh
>
9
# include <
misc/contract.hh
>
10
11
namespace
type
12
{
13
inline
14
Field::Field
(
misc::symbol
name,
const
Type
& type)
15
: name_(name)
16
, type_(type)
17
{}
18
19
inline
misc::symbol
20
Field::name_get
()
const
21
{
22
return
name_
;
23
}
24
25
inline
const
Type
&
26
Field::type_get
()
const
27
{
28
return
type_
;
29
}
30
31
inline
std::ostream&
32
operator<<
(std::ostream& ostr,
const
Field
& f)
33
{
34
return
f.
dump
(ostr);
35
}
36
37
}
// namespace type
38
39
#endif // !TYPE_FIELD_HXX
type
field.hxx
Generated on Wed Mar 5 2014 15:47:36 for LRDE Tiger Compiler by
1.8.1.2