Gray C++ Libraries  0.0.2
A set of C++ libraries for MSVC, GNU on Windows, WinCE, Linux
Gray::cPtrTraceMgr Class Reference

#include <cPtrTraceMgr.h>

Inheritance diagram for Gray::cPtrTraceMgr:
Gray::cSingleton< cPtrTraceMgr > Gray::cSingletonStatic< TYPE > Gray::cSingletonRegister Gray::CObject Gray::cHeapObject Gray::IHeapObject

Public Member Functions

virtual void TraceDump (cLogProcessor &log, ITERATE_t iCountExpected)
 
const void * get_HeapPtr () const noexcept override
 Get the top level (outermost, freeable) class pointer. I can delete get_HeapPtr(). More...
 
- Public Member Functions inherited from Gray::CObject
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)
 
- Public Member Functions inherited from Gray::cHeapObject
 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
 

Public Attributes

cThreadLockCount m_Lock
 
cArraySortVal< cPtrTrace * > m_aTraces
 

Protected Member Functions

 cPtrTraceMgr () noexcept
 
 ~cPtrTraceMgr () noexcept
 
- Protected Member Functions inherited from Gray::cSingleton< cPtrTraceMgr >
 cSingleton (cPtrTraceMgr *pObject, const TYPEINFO_t &rAddrCode=typeid(cPtrTraceMgr)) noexcept
 
virtual ~cSingleton ()
 
- Protected Member Functions inherited from Gray::cSingletonStatic< TYPE >
 cSingletonStatic (TYPE *pObject) noexcept
 
virtual ~cSingletonStatic () noexcept
 
- Protected Member Functions inherited from Gray::cSingletonRegister
 cSingletonRegister (const TYPEINFO_t &rAddrCode) noexcept
 
virtual ~cSingletonRegister ()
 
void RegisterSingleton ()
 

Friends

class cSingleton< cPtrTraceMgr >
 
class cPtrTrace
 

Additional Inherited Members

- Static Public Member Functions inherited from Gray::cSingleton< cPtrTraceMgr >
static cPtrTraceMgr *__stdcall get_Single ()
 
static TYPE2 *__stdcall get_SingleT ()
 
static cPtrTraceMgr &__stdcall I ()
 
- Static Public Member Functions inherited from Gray::cSingletonStatic< TYPE >
static bool isSingleCreated () noexcept
 
static TYPEget_SingleU () noexcept
 
static TYPEget_Single ()
 
template<class TYPE2 >
static TYPE2 *__stdcall get_SingleCast ()
 
static TYPEI () noexcept
 
- Static Public Member Functions inherited from Gray::cSingletonRegister
static void __stdcall ReleaseModule (HMODULE hMod)
 
- Static Public Attributes inherited from Gray::cSingletonRegister
static cThreadLockFast sm_LockSingle
 common lock for all cSingleton. More...
 
- Protected Attributes inherited from Gray::cSingletonRegister
HMODULE m_hModuleLoaded
 What modules loaded this ? So singletons can be destroyed if DLL/SO unloads. More...
 
- Static Protected Attributes inherited from Gray::cSingletonStatic< TYPE >
static TYPEsm_pThe = nullptr
 pointer to the one and only object of this TYPE. ASSUME automatically init to = nullptr. More...
 

Detailed Description

USE_IUNK_TRACE = We are tracing all calls to cIUnkPtr<> so we can figure out who is not releasing their ref.

Constructor & Destructor Documentation

◆ cPtrTraceMgr()

Gray::cPtrTraceMgr::cPtrTraceMgr ( )
inlineprotectednoexcept

◆ ~cPtrTraceMgr()

Gray::cPtrTraceMgr::~cPtrTraceMgr ( )
inlineprotectednoexcept

Member Function Documentation

◆ get_HeapPtr()

const void* Gray::cPtrTraceMgr::get_HeapPtr ( ) const
inlineoverridevirtualnoexcept

Get the top level (outermost, freeable) class pointer. I can delete get_HeapPtr().

Reimplemented from Gray::cHeapObject.

◆ TraceDump()

void Gray::cPtrTraceMgr::TraceDump ( cLogProcessor log,
ITERATE_t  iCountExpected 
)
virtual

Dump all the IUnks that are left not released !!!

Friends And Related Function Documentation

◆ cPtrTrace

friend class cPtrTrace
friend

◆ cSingleton< cPtrTraceMgr >

friend class cSingleton< cPtrTraceMgr >
friend

Member Data Documentation

◆ m_aTraces

cArraySortVal<cPtrTrace*> Gray::cPtrTraceMgr::m_aTraces

◆ m_Lock

cThreadLockCount Gray::cPtrTraceMgr::m_Lock
mutable

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