![]() |
Gray C++ Libraries
0.0.2
A set of C++ libraries for MSVC, GNU on Windows, WinCE, Linux
|
#include <cHeapObject.h>
Public Member Functions | |
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 | |
const void * | get_HeapPtr () const noexcept override |
Get the top level (outermost, freeable) class pointer. I can delete get_HeapPtr(). More... | |
The base of some class/struct object that is ALWAYS heap allocated. This item MUST always be dynamically allocated with new/delete! Never stack (auto) or data segment (static) based. get_HeapPtr() must be declared by the highest level ! since derived classes wrap their base classes. multiple inheritance can disguise the base allocated pointer
|
inline |
|
inlinevirtual |
|
inlineoverrideprotectedvirtualnoexcept |
Get the top level (outermost, freeable) class pointer. I can delete get_HeapPtr().
Implements Gray::IHeapObject.
Reimplemented in Gray::cUnitTests, Gray::cSystemInfo, Gray::cSingletonSmart< TYPE >, Gray::cSingletonSmart< cSQLMgr >, Gray::cSingletonSmart< cNetSystem >, Gray::cSingletonSmart< cXObjMgr >, Gray::cSingletonSmart< cLogAppendConsole >, Gray::cSingletonSmart< cJSXEngine >, Gray::cRandomOS, Gray::cPtrTraceMgr, Gray::cLogMgr, and Gray::cLogAppendConsole.
|
inlinevirtual |
Not the same as GetHeapStats(). size of *this as opposed to size of children.
|
inlinevirtualnoexcept |
Reimplemented in GrayLib::cXObject, and GrayLib::cVarTuple.
|
inline |
Is index a valid offset inside this object?
|
inline |
Is pTest a valid pointer inside the this object ?