Uc_scope Class Reference

#include <ucsym.h>

Collaboration diagram for Uc_scope:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 Uc_scope (Uc_scope *p)
 ~Uc_scope ()
Uc_scopeget_parent ()
Uc_symbolsearch (const char *nm)
Uc_symbolsearch_up (char *nm)
void add (Uc_symbol *sym)
Uc_scopeadd_scope ()
int add_function_symbol (Uc_function_symbol *fun)

Private Types

typedef std::map< char *,
Uc_symbol *, String_compare
Sym_map

Private Attributes

Uc_scopeparent
Sym_map symbols
std::vector< Uc_scope * > scopes

Detailed Description

Definition at line 200 of file ucsym.h.


Member Typedef Documentation

typedef std::map<char *, Uc_symbol *, String_compare> Uc_scope::Sym_map [private]

Definition at line 204 of file ucsym.h.


Constructor & Destructor Documentation

Uc_scope::Uc_scope ( Uc_scope p  )  [inline]

Definition at line 208 of file ucsym.h.

Referenced by add_scope().

Uc_scope::~Uc_scope (  ) 

Definition at line 363 of file ucsym.cc.


Member Function Documentation

Uc_scope* Uc_scope::get_parent (  )  [inline]

Definition at line 211 of file ucsym.h.

References parent.

Referenced by Uc_function::pop_scope().

Uc_symbol* Uc_scope::search ( const char *  nm  )  [inline]

Definition at line 213 of file ucsym.h.

References symbols.

Referenced by Uc_function::is_dup(), Uc_function::search(), and Uc_function::search_up().

Uc_symbol * Uc_scope::search_up ( char *  nm  ) 

Definition at line 381 of file ucsym.cc.

Referenced by Uc_function::search_up().

void Uc_scope::add ( Uc_symbol sym  )  [inline]

Definition at line 224 of file ucsym.h.

References Uc_symbol::name, and symbols.

Uc_scope* Uc_scope::add_scope (  )  [inline]

Definition at line 230 of file ucsym.h.

References scopes, and Uc_scope().

Referenced by Uc_function::push_scope().

Here is the call graph for this function:

int Uc_scope::add_function_symbol ( Uc_function_symbol fun  ) 

Definition at line 401 of file ucsym.cc.

References Uc_symbol::get_name(), Uc_function_symbol::get_num_parms(), Uc_function_symbol::get_usecode_num(), and Uc_location::yyerror().

Referenced by Uc_function::add_function_symbol(), and Uc_function::add_global_function_symbol().

Here is the call graph for this function:


Member Data Documentation

Uc_scope* Uc_scope::parent [private]

Definition at line 202 of file ucsym.h.

Referenced by get_parent().

Sym_map Uc_scope::symbols [private]

Definition at line 205 of file ucsym.h.

Referenced by add(), and search().

std::vector<Uc_scope *> Uc_scope::scopes [private]

Definition at line 206 of file ucsym.h.

Referenced by add_scope().


The documentation for this class was generated from the following files:
Generated on Mon Jul 9 15:04:47 2007 for ExultEngine by  doxygen 1.5.1