![]() |
Gray C++ Libraries
0.0.2
A set of C++ libraries for MSVC, GNU on Windows, WinCE, Linux
|
#include <cExpressionContext.h>
Public Member Functions | |
cExpressionContext * | get_ContextCurrent0 () const noexcept |
void | put_ContextCurrent (cExpressionContext *pContext) |
cExpressionContext * | get_ContextRoot () const noexcept |
cExpressionContext * | put_ContextRoot (cExpressionContext *pContextRoot) |
![]() | |
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 |
Static Public Member Functions | |
static cExpressionContext *GRAYCALL | GetContextCurrent () |
![]() | |
static cExpressionContextMgr *__stdcall | get_Single () |
static TYPE2 *__stdcall | get_SingleT () |
static cExpressionContextMgr &__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) |
Protected Member Functions | |
cExpressionContextMgr () | |
~cExpressionContextMgr () | |
![]() | |
cSingleton (cExpressionContextMgr *pObject, const TYPEINFO_t &rAddrCode=typeid(cExpressionContextMgr)) 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... | |
Protected Attributes | |
cThreadLocalSysT< cExpressionContext * > | m_Current |
Current context for the current thread. does not delete. More... | |
![]() | |
HMODULE | m_hModuleLoaded |
What modules loaded this ? So singletons can be destroyed if DLL/SO unloads. More... | |
Friends | |
class | cSingleton< cExpressionContextMgr > |
Additional Inherited Members | |
![]() | |
static cThreadLockFast | sm_LockSingle |
common lock for all cSingleton. More... | |
![]() | |
static TYPE * | sm_pThe = nullptr |
pointer to the one and only object of this TYPE. ASSUME automatically init to = nullptr. More... | |
Keep a current context for each thread. base class for cScriptContextMgr. assume m_pContextRoot is shared by all threads.
|
protected |
|
protected |
|
noexcept |
Get the current Context block for the current thread. supply no default.
|
inlinenoexcept |
|
static |
Get the current Context block for the current thread. use default if nullptr.
void GrayLib::cExpressionContextMgr::put_ContextCurrent | ( | cExpressionContext * | pContext | ) |
cExpressionContext * GrayLib::cExpressionContextMgr::put_ContextRoot | ( | cExpressionContext * | pContextRoot | ) |
sets the global/default/root context for global variables and k_ROOT object.
|
friend |
|
protected |
Current context for the current thread. does not delete.