LRDE Tiger Compiler  1.34a $Id: 7fef12e1f5fa43449d667a0eec1d837c40fc1202 $
 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
13  : def_(def)
14  {}
15 
16  inline
19  {
20  return def_->name_get();
21  }
22 
23  inline
24  const Type&
26  {
27  return *def_->type_get();
28  }
29 
30  inline
31  const ast::VarDec*
33  {
34  return def_;
35  }
36 
37  inline
38  void
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