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

#include <cPtrTrace.h>

Public Member Functions

 cPtrTrace (const TYPEINFO_t &TypeInfo) noexcept
 
 cPtrTrace (const cPtrTrace &ref) noexcept
 
void TraceOpen (void *p)
 
void TraceClose (void *p)
 

Public Attributes

const char * m_pszType
 from __typeof(TYPEINFO_t).name() More...
 
cDebugSourceLine m_Src
 where (in code) was m_p set? More...
 

Static Public Attributes

static bool sm_bActive = false
 Turn on/off tracing via cPtrTraceMgr. be fast. More...
 

Friends

class cPtrTraceTests
 

Detailed Description

Trace each use of the a pointer in cPtrFacade/cIUnkPtr for debug purposes. If the lock count fails to go to 0 we know who the leaker was. or if the object is deleted but still has refs we can detect that as well. Add myself to the cPtrTraceMgr table if the m_p pointer is set.

Constructor & Destructor Documentation

◆ cPtrTrace() [1/2]

Gray::cPtrTrace::cPtrTrace ( const TYPEINFO_t TypeInfo)
inlinenoexcept

◆ cPtrTrace() [2/2]

Gray::cPtrTrace::cPtrTrace ( const cPtrTrace ref)
inlinenoexcept

Member Function Documentation

◆ TraceClose()

void Gray::cPtrTrace::TraceClose ( void *  p)

◆ TraceOpen()

void Gray::cPtrTrace::TraceOpen ( void *  p)

Friends And Related Function Documentation

◆ cPtrTraceTests

friend class cPtrTraceTests
friend

Member Data Documentation

◆ m_pszType

const char* Gray::cPtrTrace::m_pszType

from __typeof(TYPEINFO_t).name()

◆ m_Src

cDebugSourceLine Gray::cPtrTrace::m_Src

where (in code) was m_p set?

◆ sm_bActive

bool Gray::cPtrTrace::sm_bActive = false
static

Turn on/off tracing via cPtrTraceMgr. be fast.


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