Nebula
Loading...
Searching...
No Matches
Util::LocalStringAtomTable Class Reference

#include <localstringatomtable.h>

Detailed Description

Implements a thread-local string atom table which is used as a cache to prevent excessive locking when creating string atoms.

Inherits Util::StringAtomTableBase.

Public Member Functions

 LocalStringAtomTable ()
 constructor
 
 ~LocalStringAtomTable ()
 destructor
 
- Public Member Functions inherited from Util::StringAtomTableBase
 StringAtomTableBase ()
 constructor
 
 ~StringAtomTableBase ()
 destructor
 

Private Member Functions

 __DeclareSingleton (LocalStringAtomTable)
 
void Add (const char *str)
 add a string pointer to the atom table
 

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< StaticStringtable
 

Constructor & Destructor Documentation

◆ LocalStringAtomTable()

Util::LocalStringAtomTable::LocalStringAtomTable ( )

constructor

◆ ~LocalStringAtomTable()

Util::LocalStringAtomTable::~LocalStringAtomTable ( )

destructor

Member Function Documentation

◆ __DeclareSingleton()

Util::LocalStringAtomTable::__DeclareSingleton ( LocalStringAtomTable )
private

◆ Add()

void Util::LocalStringAtomTable::Add ( const char * str)
private

add a string pointer to the atom table

NOTE: the string added here must already be located in the global string buffer (see GlobalStringAtomTable for details).

Friends And Related Symbol Documentation

◆ StringAtom

friend class StringAtom
friend

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