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

sym_scoped Class Reference

This is a derived symbol class for named items that exist in a scope. More...

#include <sym.h>

Inheritance diagram for sym_scoped:

Inheritance graph
[legend]
Collaboration diagram for sym_scoped:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 sym_scoped (STRING n)
 sym_scoped ()
void set_scope (pSym scope)
const pSym get_parent_scope (void)

Private Attributes

pSym parent_scope

Detailed Description

This is a derived symbol class for named items that exist in a scope.

These include:

These items can all be found in a symbol table in their local scope.

Subprograms not only have scope, but they also have an associated synbol table.

Exceptions (e.g., objects that are NOT sym_scoped, but have scope information)

Definition at line 332 of file sym.h.


Constructor & Destructor Documentation

sym_scoped::sym_scoped STRING  n  )  [inline]
 

Definition at line 337 of file sym.h.

References NULL, and parent_scope.

00337                          : sym( n )
00338     { 
00339         parent_scope = NULL; 
00340     }

sym_scoped::sym_scoped  )  [inline]
 

Definition at line 342 of file sym.h.

References NULL, and parent_scope.

00343     {
00344         parent_scope = NULL;
00345     }


Member Function Documentation

const pSym sym_scoped::get_parent_scope void   )  [inline, virtual]
 

Reimplemented from sym.

Definition at line 351 of file sym.h.

References parent_scope.

00352     {
00353         return parent_scope;
00354     }

void sym_scoped::set_scope pSym  scope  )  [inline, virtual]
 

Reimplemented from sym.

Definition at line 347 of file sym.h.

References parent_scope.

00348     {
00349         parent_scope = scope;
00350     }


Member Data Documentation

pSym sym_scoped::parent_scope [private]
 

Definition at line 334 of file sym.h.

Referenced by get_parent_scope(), set_scope(), and sym_scoped().


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