Nebula
|
#include <globalstringatomtable.h>
Global string atom table.
This is the definitive string atom table which contains the string of all string atoms of all threads. Locking is necessary to lookup or add a string (that's why thread-local string atom tables exist as local cache to prevent too much locking of the global table).
Inherits Util::StringAtomTableBase.
Classes | |
struct | DebugInfo |
debug functionality: DebugInfo struct More... | |
Public Member Functions | |
GlobalStringAtomTable () | |
constructor | |
~GlobalStringAtomTable () | |
destructor | |
StringBuffer * | GetGlobalStringBuffer () const |
get pointer to global string buffer | |
DebugInfo | GetDebugInfo () const |
debug functionality: get copy of the string atom table | |
Public Member Functions inherited from Util::StringAtomTableBase | |
StringAtomTableBase () | |
constructor | |
~StringAtomTableBase () | |
destructor | |
Private Member Functions | |
__DeclareInterfaceSingleton (GlobalStringAtomTable) | |
void | Lock () |
take the critical section | |
const char * | Add (const char *str) |
add a string pointer to the atom table and string buffer (must be called inside Lock()) | |
void | Unlock () |
release the critical section | |
Private Attributes | |
Threading::CriticalSection | critSect |
StringBuffer | stringBuffer |
Friends | |
class | StringAtom |
Additional Inherited Members | |
Protected Member Functions inherited from Util::StringAtomTableBase | |
const char * | Find (const char *str) const |
find a string pointer in the atom table | |
Protected Attributes inherited from Util::StringAtomTableBase | |
Util::Array< StaticString > | table |
Util::GlobalStringAtomTable::GlobalStringAtomTable | ( | ) |
constructor
Util::GlobalStringAtomTable::~GlobalStringAtomTable | ( | ) |
destructor
|
private |
|
private |
GlobalStringAtomTable::DebugInfo Util::GlobalStringAtomTable::GetDebugInfo | ( | ) | const |
debug functionality: get copy of the string atom table
Debug method: get an array with all string in the table.
StringBuffer * Util::GlobalStringAtomTable::GetGlobalStringBuffer | ( | ) | const |
get pointer to global string buffer
|
private |
take the critical section
|
private |
release the critical section
|
friend |
|
private |
|
private |