Main Page | Class Hierarchy | Compound List | File List | Compound Members | File Members

sym_type Class Reference

Derived symbol class for named types. More...

#include <dsym.h>

Inheritance diagram for sym_type:

Inheritance graph
[legend]
Collaboration diagram for sym_type:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 sym_type (STRING n)
 sym_type ()
const uint get_sy_kind (void)
const pType get_ty_type (void)
void set_ty_type (pType t)

Private Attributes

pType ty

Detailed Description

Derived symbol class for named types.

Base class for typed objects: identifiers, named constants, functions

The type associated with the symbol is allocated separately. This type is used to initialize the type field of this class.

Definition at line 84 of file dsym.h.


Constructor & Destructor Documentation

sym_type::sym_type STRING  n  )  [inline]
 

Definition at line 89 of file dsym.h.

References NULL, and ty.

00089                         : sym( n )
00090     {
00091         ty = NULL;
00092     } // sym_type constructor

sym_type::sym_type  )  [inline]
 

Definition at line 94 of file dsym.h.

References NULL, and ty.

00095     {
00096         ty = NULL;
00097     }


Member Function Documentation

const uint sym_type::get_sy_kind void   )  [inline, virtual]
 

Reimplemented from sym.

Definition at line 99 of file dsym.h.

References sy_type, and uint.

00099 { return sy_type; }

const pType sym_type::get_ty_type void   )  [inline, virtual]
 

Reimplemented from sym.

Definition at line 101 of file dsym.h.

References ty.

00102     { 
00103         return ty; 
00104     } // get_type

void sym_type::set_ty_type pType  t  )  [inline, virtual]
 

Reimplemented from sym.

Definition at line 105 of file dsym.h.

References NULL, and ty.

Referenced by main().

00106     { 
00107         assert( t != NULL );
00108         ty = t;
00109     } // set_type


Member Data Documentation

pType sym_type::ty [private]
 

Definition at line 86 of file dsym.h.

Referenced by get_ty_type(), set_ty_type(), and sym_type().


The documentation for this class was generated from the following file:
Generated on Wed Mar 31 21:16:12 2004 for Data Structures for a VHDL Compiler by doxygen 1.3.3