Jamoma API  0.6.0.a19
TTAddressTable.h
1 /*
2  * Jamoma Class that maintains a table of addresses
3  * Copyright © 2011, Théo de la Hogue
4  *
5  * License: This code is licensed under the terms of the "New BSD License"
6  * http://creativecommons.org/licenses/BSD/
7  */
8 
9 #ifndef __TT_ADDRESS_TABLE_H__
10 #define __TT_ADDRESS_TABLE_H__
11 
12 #include "TTBase.h"
13 #include "TTSymbolBase.h"
14 #include "TTSymbolTable.h"
15 #include "TTAddressBase.h"
16 
17 
18 /****************************************************************************************************/
19 // Class Specifications
20 
21 /**
22  The TTAddressTable class is a second symbol table,
23  but used only for addresses to keep lookups fast.
24  */
25 
26 class TTFOUNDATION_EXPORT TTAddressTable : public TTSymbolTable {
27 public:
28 
29  TTAddressTable() :
30  TTSymbolTable(true)
31  {;}
32 
33  /** Override the method used internally when constructing a new TTSymbolBase */
34  virtual TTSymbolBase* createEntry(const TTString& aString, TTInt32 newSymbolId);
35 
36 };
37 
38 extern TTFOUNDATION_EXPORT TTAddressTable gTTAddressTable; ///< The global table of addresses
39 
40 
41 #endif // __TT_ADDRESS_TABLE_H__
42 
The TTSymbolBase class is used to represent a string and efficiently pass and compare that string...
Definition: TTSymbolBase.h:28
virtual TTSymbolBase * createEntry(const TTString &aString, TTInt32 newSymbolId)
Overridable method used internally when constructing a new TTSymbolBase.
Jamoma's lowest-level base class and related infrastructure.
The TTAddressTable class is a second symbol table, but used only for addresses to keep lookups fast...
The TTSymbolTable class is hash_map (based on Stroustrup pp 497) that keeps commonly used strings in ...
Definition: TTSymbolTable.h:24
std::int32_t TTInt32
32 bit signed integer
Definition: TTBase.h:177
The TTString class is used to represent a string.
Definition: TTString.h:34