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

The base type for Record fields. More...

#include <field.hh>

Collaboration diagram for type::Field:

Public Member Functions

virtual std::ostream & dump (std::ostream &ostr) const
 Print the field.
Destructors
virtual ~Field ()
Ctor & dtor.
 Field (misc::symbol name, const Type &type)
 Construct a Field.
Accessors.
misc::symbol name_get () const
 Return the field's name.
const Typetype_get () const
 Return the field's type.

Protected Attributes

misc::symbol name_
 Field's identifier.
const Typetype_
 Field's type.

Detailed Description

The base type for Record fields.

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

Constructor & Destructor Documentation

type::Field::~Field ( )
virtual
type::Field::Field ( misc::symbol  name,
const Type type 
)
inline

Construct a Field.

Parameters
namefield's identifier.
typefield's type.

Member Function Documentation

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

Print the field.

References name_get(), and type_get().

Referenced by type::operator<<().

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

Return the field's name.

References name_.

Referenced by dump().

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

Return the field's type.

References type_.

Referenced by dump().

Member Data Documentation

misc::symbol type::Field::name_
protected

Field's identifier.

Referenced by name_get().

const Type& type::Field::type_
protected

Field's type.

Referenced by type_get().


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