Jamoma API
0.6.0.a19
|
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>
Public Member Functions | |
TTSymbolBase * | lookup (const char *aString) |
Look in the symbol table for this string. More... | |
TTSymbolBase * | lookup (const TTString &aString) |
Look in the symbol table for this string. More... | |
TTSymbolBase * | lookup (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 TTSymbolBase * | createEntry (const TTString &aString, TTInt32 newSymbolId) |
Overridable method used internally when constructing a new TTSymbolBase. | |
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.
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().
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().
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().
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().