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

sym_subprog Class Reference

This class represents VHDL procedures and functions. More...

#include <dsym.h>

Inheritance diagram for sym_subprog:

Inheritance graph
[legend]
Collaboration diagram for sym_subprog:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 sym_subprog (STRING n)
 sym_subprog ()
const uint get_sy_kind (void)
void set_statement (NODE *s)
const NODEget_statement (void)
void set_func_type (pType t)
const pType get_func_type (void)

Public Attributes

FIFO_LIST< sym_ident * > arg_list

Private Attributes

pType ty
NODEtree

Detailed Description

This class represents VHDL procedures and functions.

This class is derived from sym_scope, so this is an object that contains local scope (e.g., a local symbol table). If the type is NULL, its a procedure.

Note that transformation turns functions into procedures. After transformation, the function results becomes an argument (by convention, usually the first argument).

Definition at line 297 of file dsym.h.


Constructor & Destructor Documentation

sym_subprog::sym_subprog STRING  n  )  [inline]
 

Definition at line 306 of file dsym.h.

References NULL, tree, and ty.

00306                            : sym_scope( n )
00307     {
00308         tree = NULL;
00309         ty = NULL;
00310     }

sym_subprog::sym_subprog  )  [inline]
 

Definition at line 312 of file dsym.h.

References NULL, tree, and ty.

00313     {
00314         tree = NULL;
00315         ty = NULL;
00316     }


Member Function Documentation

const pType sym_subprog::get_func_type void   )  [inline, virtual]
 

Reimplemented from sym.

Definition at line 334 of file dsym.h.

References ty.

00335     {
00336         return ty;
00337     }

const NODE* sym_subprog::get_statement void   )  [inline, virtual]
 

Reimplemented from sym.

Definition at line 324 of file dsym.h.

References tree.

00325     {
00326         return tree;
00327     }

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

Reimplemented from sym.

Definition at line 318 of file dsym.h.

References sy_subprog, and uint.

00318 { return sy_subprog; }

void sym_subprog::set_func_type pType  t  )  [inline, virtual]
 

Reimplemented from sym.

Definition at line 329 of file dsym.h.

References ty.

00330     {
00331         ty = t;
00332     }

void sym_subprog::set_statement NODE s  )  [inline, virtual]
 

Reimplemented from sym.

Definition at line 320 of file dsym.h.

References tree.

00321     {
00322         tree = s;
00323     }


Member Data Documentation

FIFO_LIST<sym_ident *> sym_subprog::arg_list
 

Definition at line 303 of file dsym.h.

NODE* sym_subprog::tree [private]
 

Definition at line 300 of file dsym.h.

Referenced by get_statement(), set_statement(), and sym_subprog().

pType sym_subprog::ty [private]
 

Definition at line 299 of file dsym.h.

Referenced by get_func_type(), set_func_type(), and sym_subprog().


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