Jamoma API  0.6.0.a19
TTSymbolTable Class Reference

The TTSymbolTable class is hash_map (based on Stroustrup pp 497) that keeps commonly used strings in a table so that we can refer to them simply as a pointers for fast comparison. More...

#include <TTSymbolTable.h>

+ Inheritance diagram for TTSymbolTable:

Public Member Functions

TTSymbolBaselookup (const char *aString)
 Look in the symbol table for this string. More...
 
TTSymbolBaselookup (const TTString &aString)
 Look in the symbol table for this string. More...
 
TTSymbolBaselookup (const int &aNumberToBeConvertedToAString)
 Look in the symbol table for a string with this number as its content. More...
 
void dump ()
 Debugging tool to make it easy to examine everything that is in the symbol table. More...
 

Protected Member Functions

virtual TTSymbolBasecreateEntry (const TTString &aString, TTInt32 newSymbolId)
 Overridable method used internally when constructing a new TTSymbolBase.
 

Detailed Description

The TTSymbolTable class is hash_map (based on Stroustrup pp 497) that keeps commonly used strings in a table so that we can refer to them simply as a pointers for fast comparison.

Definition at line 24 of file TTSymbolTable.h.

Member Function Documentation

void TTSymbolTable::dump ( )

Debugging tool to make it easy to examine everything that is in the symbol table.

Definition at line 147 of file TTSymbolTable.cpp.

References TTLogMessage().

+ Here is the call graph for this function:

TTSymbolBase * TTSymbolTable::lookup ( const char *  aString)

Look in the symbol table for this string.

If it exists then return its id. If it does not exist then it is created, added to the symbol table and this new symbol's id is returned.

Definition at line 69 of file TTSymbolTable.cpp.

References createEntry().

Referenced by TTAddressBase::appendAddress(), TTAddressBase::edit(), lookup(), TTAddressBase::splitAt(), and TTAddress::TTAddress().

+ Here is the call graph for this function:

TTSymbolBase * TTSymbolTable::lookup ( const TTString aString)

Look in the symbol table for this string.

If it exists then return its id. If it does not exist then it is created, added to the symbol table and this new symbol's id is returned.

Definition at line 97 of file TTSymbolTable.cpp.

References TTString::c_str(), and createEntry().

+ Here is the call graph for this function:

TTSymbolBase * TTSymbolTable::lookup ( const int &  aNumberToBeConvertedToAString)

Look in the symbol table for a string with this number as its content.

If it exists then return its id. If it does not exist then it is created, added to the symbol table and this new symbol's id is returned.

Definition at line 129 of file TTSymbolTable.cpp.

References lookup().

+ Here is the call graph for this function:


The documentation for this class was generated from the following files: