Main Page   Namespace List   Class Hierarchy   Compound List   File List   Compound Members   File Members   Related Pages   Examples  

SymbolTable Class Reference

A SymbolTable keeps a numbered list of records, which each have a unique (type, text). More...

#include <SymbolTable.h>

Collaboration diagram for SymbolTable:

Collaboration graph
[legend]
List of all members.

Public Methods

Friends


Detailed Description

A SymbolTable keeps a numbered list of records, which each have a unique (type, text).

The "type" part gives us essentially a small group of related SymbolTables with distinct namespaces but the same number space.

Definition at line 29 of file SymbolTable.h.


Member Function Documentation

const bool SymbolTable::release Index    index [inline]
 

Undo the "keep" declaration.

This may cause the Symbol to be garbage collected.

Definition at line 79 of file SymbolTable.h.

SymbolTable::Index SymbolTable::lookupOrAdd SymbolTable::Type    type,
const char *    text,
bool *    added_ptr = 0
 

Look for an entry with this (type, text) combination.

If it's found, return it's index. If not, add it and return it's index.

Definition at line 74 of file SymbolTable.cpp.

Referenced by SimpleVariableScope::getVar(), and SimpleVariableScope::getVarIndex().


Home to blindfold. This page generated via doxygen 1.2.11.1 Wed Oct 10 16:40:36 2001.