LRDE Tiger Compiler  1.34a $Id: 7fef12e1f5fa43449d667a0eec1d837c40fc1202 $
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
type::Attribute Class Reference

The base object for Class attributes. More...

#include <attribute.hh>

Collaboration diagram for type::Attribute:

Public Member Functions

virtual std::ostream & dump (std::ostream &ostr) const
 Print the field.
Destructor.
virtual ~Attribute ()
Constructor.
 Attribute (const ast::VarDec *def)
 Construct a Attribute.
Accessors.
misc::symbol name_get () const
 Return the attribute's name.
const Typetype_get () const
 Return the attribute's type.
const ast::VarDecdef_get () const
 Return attribute's definition site.
void def_set (const ast::VarDec *def)
 Set the attribute's definition site.

Private Attributes

const ast::VarDecdef_

Detailed Description

The base object for Class attributes.

Very much like Named, but it is not a Type.

Constructor & Destructor Documentation

type::Attribute::~Attribute ( )
virtual
type::Attribute::Attribute ( const ast::VarDec def)
inline

Construct a Attribute.

Parameters
defattribute's definition site.

Member Function Documentation

const ast::VarDec * type::Attribute::def_get ( ) const
inline

Return attribute's definition site.

References def_.

void type::Attribute::def_set ( const ast::VarDec def)
inline

Set the attribute's definition site.

References def_.

std::ostream & type::Attribute::dump ( std::ostream &  ostr) const
virtual

Print the field.

References name_get(), and type_get().

Referenced by type::operator<<().

misc::symbol type::Attribute::name_get ( ) const
inline

Return the attribute's name.

References def_, and ast::Dec::name_get().

Referenced by dump().

const Type & type::Attribute::type_get ( ) const
inline

Return the attribute's type.

References def_.

Referenced by dump().

Member Data Documentation

const ast::VarDec* type::Attribute::def_
private

Referenced by def_get(), def_set(), name_get(), and type_get().


The documentation for this class was generated from the following files: