In file symboltable.hpp: Base class for generic SymbolTable.
Documentation
Base class for generic SymbolTable.
Maintains the array of identifiers.
Inheritance:
Public Methods
-
BaseSymbolTable()
-
~BaseSymbolTable()
- deletes identifiers
-
void DelNames()
- delete all symbols
-
void AppendName(const char* name)
- append new name (copy)
-
int Index(const char* name) const
- Index of symbol name, throws exception if unsued
-
int CheckIndex(const char* name) const
- Index of symbol name, returns -1 if unused
Protected Fields
-
ARRAY<char*> names
- identifiers
ARRAY<char*> names
- identifiers
BaseSymbolTable()
~BaseSymbolTable()
- deletes identifiers
void DelNames()
- delete all symbols
void AppendName(const char* name)
- append new name (copy)
int Index(const char* name) const
- Index of symbol name, throws exception if unsued
int CheckIndex(const char* name) const
- Index of symbol name, returns -1 if unused
- Direct child classes:
- SymbolTable
Alphabetic index HTML hierarchy of classes or Java
This page was generated with the help of DOC++.