![]() |
Gray C++ Libraries
0.0.2
A set of C++ libraries for MSVC, GNU on Windows, WinCE, Linux
|
#include <cAtomManager.h>
Public Member Functions | |
cAtomManager () | |
~cAtomManager () | |
cAtomRef | FindAtomStr (const ATOMCHAR_t *pszText) const |
cAtomRef | FindAtomHashCode (ATOMCODE_t idAtom) const |
HRESULT | DebugDumpFile (cStreamOutput &o) const |
const void * | get_HeapPtr () const noexcept override |
Get the top level (outermost, freeable) class pointer. I can delete get_HeapPtr(). More... | |
![]() | |
virtual | ~CObject () |
virtual bool | isValidCheck () const noexcept |
< memory allocation and structure definitions are valid. More... | |
virtual void | AssertValid () const |
< memory allocation and structure definitions are valid. More... | |
virtual void | Serialize (cArchive &a) |
![]() | |
cHeapObject () | |
virtual | ~cHeapObject () |
bool | IsValidInsideN (INT_PTR index) const |
bool | IsValidInsidePtr (void const *pTest) const |
virtual size_t | GetHeapStatsThis (OUT ITERATE_t &iAllocCount) const |
virtual bool | isValidCheck () const noexcept |
Protected Member Functions | |
bool | RemoveAtom (cAtomDef *pDef) |
cAtomDefPtr | CreateAtom (ITERATE_t index, COMPARE_t iCompareRes, cStringA sVal) |
cAtomDefPtr | FindorCreateAtomStr (const cStringA &sName) |
cAtomDefPtr | FindorCreateAtomStr (const ATOMCHAR_t *pszName) |
void | SetAtomStatic (cAtomDef *pDef) |
![]() | |
cSingleton (cAtomManager *pObject, const TYPEINFO_t &rAddrCode=typeid(cAtomManager)) noexcept | |
virtual | ~cSingleton () |
![]() | |
cSingletonStatic (TYPE *pObject) noexcept | |
virtual | ~cSingletonStatic () noexcept |
![]() | |
cSingletonRegister (const TYPEINFO_t &rAddrCode) noexcept | |
virtual | ~cSingletonRegister () |
void | RegisterSingleton () |
![]() | |
const void * | get_HeapPtr () const noexcept override |
Get the top level (outermost, freeable) class pointer. I can delete get_HeapPtr(). More... | |
Friends | |
class | cSingleton< cAtomManager > |
class | cAtomRef |
class | cAtomTests |
Additional Inherited Members | |
![]() | |
static cAtomManager *__stdcall | get_Single () |
static TYPE2 *__stdcall | get_SingleT () |
static cAtomManager &__stdcall | I () |
![]() | |
static bool | isSingleCreated () noexcept |
static TYPE * | get_SingleU () noexcept |
static TYPE * | get_Single () |
template<class TYPE2 > | |
static TYPE2 *__stdcall | get_SingleCast () |
static TYPE & | I () noexcept |
![]() | |
static void __stdcall | ReleaseModule (HMODULE hMod) |
![]() | |
static cThreadLockFast | sm_LockSingle |
common lock for all cSingleton. More... | |
![]() | |
HMODULE | m_hModuleLoaded |
What modules loaded this ? So singletons can be destroyed if DLL/SO unloads. More... | |
![]() | |
static TYPE * | sm_pThe = nullptr |
pointer to the one and only object of this TYPE. ASSUME automatically init to = nullptr. More... | |
an alpha sorted string lookup table. CASE IGNORED !
Gray::cAtomManager::cAtomManager | ( | ) |
created on demand to prevent any race conditions at static create time.
Gray::cAtomManager::~cAtomManager | ( | ) |
|
protected |
Insertion sort.
HRESULT Gray::cAtomManager::DebugDumpFile | ( | cStreamOutput & | o | ) | const |
cAtomRef Gray::cAtomManager::FindAtomHashCode | ( | ATOMCODE_t | idAtom | ) | const |
Is this hash id a valid atom hash ? this is 32 bit specific?
cAtomRef Gray::cAtomManager::FindAtomStr | ( | const ATOMCHAR_t * | pszText | ) | const |
Get the atom that corresponds to a string. do not create it.
|
protected |
Find the atom in the atom table if it exists else create a new one.
|
protected |
Find the atom in the atom table if it exists else create a new one. Does NOT return nullptr
|
inlineoverridevirtualnoexcept |
Get the top level (outermost, freeable) class pointer. I can delete get_HeapPtr().
Implements Gray::IHeapObject.
|
protected |
Make this atom permanent. never removed from the atom tables. adds an extra ref.
|
friend |
|
friend |
|
friend |