Medical Imaging Interaction Toolkit  2018.4.99-389bf124
Medical Imaging Interaction Toolkit
berry::DebugUtil Class Reference

#include <berryDebugUtil.h>

Static Public Member Functions

static DebugBreakpointManagerGetBreakpointManager ()
 
static void TraceObject (const Object *)
 
static void TraceObject (unsigned int traceId)
 
static void TraceClass (const QString &className)
 
static void StopTracing (unsigned int traceId)
 
static void StopTracing (const Object *obj)
 
static void StopTracing (const QString &className)
 
static bool IsTraced (const Object *object)
 
static bool IsTraced (unsigned int traceId)
 
static bool IsTraced (const QString &className)
 
static QSet< unsigned int > GetTracedObjects ()
 
static const ObjectGetObject (unsigned int traceId)
 
static QList< unsigned int > GetSmartPointerIDs (const Object *objectPointer, const QList< unsigned int > &excludeList=QList< unsigned int >())
 
static QList< const Object * > GetRegisteredObjects ()
 
static void PrintSmartPointerIDs (const Object *objectPointer, const QList< unsigned int > &excludeList=QList< unsigned int >())
 
static void ResetObjectSummary ()
 
static bool PrintObjectSummary (bool details=false)
 
static bool PrintObjectSummary (const QString &className, bool details=false)
 
static void AddObjectListener (IDebugObjectListener *listener)
 
static void RemoveObjectListener (IDebugObjectListener *listener)
 
static void SaveState (const QDir &path)
 
static void RestoreState (const QDir &path)
 
static unsigned int & GetSmartPointerCounter ()
 
static void RegisterSmartPointer (unsigned int smartPointerId, const Object *objectPointer, bool recordStack=false)
 
static void UnregisterSmartPointer (unsigned int smartPointerId, const Object *objectPointer)
 
static void RegisterObject (const Object *objectPointer)
 
static void UnregisterObject (const Object *objectPointer)
 

Detailed Description

Definition at line 32 of file berryDebugUtil.h.

Member Function Documentation

◆ AddObjectListener()

void berry::DebugUtil::AddObjectListener ( IDebugObjectListener listener)
static

◆ GetBreakpointManager()

DebugBreakpointManager * berry::DebugUtil::GetBreakpointManager ( )
static

◆ GetObject()

const Object * berry::DebugUtil::GetObject ( unsigned int  traceId)
static

◆ GetRegisteredObjects()

QList< const Object * > berry::DebugUtil::GetRegisteredObjects ( )
static

Definition at line 249 of file berryDebugUtil.cpp.

◆ GetSmartPointerCounter()

unsigned int & berry::DebugUtil::GetSmartPointerCounter ( )
static

◆ GetSmartPointerIDs()

QList< unsigned int > berry::DebugUtil::GetSmartPointerIDs ( const Object objectPointer,
const QList< unsigned int > &  excludeList = QList<unsigned int>() 
)
static

Definition at line 242 of file berryDebugUtil.cpp.

Referenced by GetObject().

◆ GetTracedObjects()

QSet< unsigned int > berry::DebugUtil::GetTracedObjects ( )
static

Definition at line 220 of file berryDebugUtil.cpp.

◆ IsTraced() [1/3]

bool berry::DebugUtil::IsTraced ( const Object object)
static

Definition at line 180 of file berryDebugUtil.cpp.

Referenced by IsTraced(), and StopTracing().

◆ IsTraced() [2/3]

bool berry::DebugUtil::IsTraced ( unsigned int  traceId)
static

Definition at line 202 of file berryDebugUtil.cpp.

References IsTraced().

◆ IsTraced() [3/3]

bool berry::DebugUtil::IsTraced ( const QString &  className)
static

Definition at line 214 of file berryDebugUtil.cpp.

◆ PrintObjectSummary() [1/2]

bool berry::DebugUtil::PrintObjectSummary ( bool  details = false)
static

Definition at line 290 of file berryDebugUtil.cpp.

References berry::Object::GetClassName().

◆ PrintObjectSummary() [2/2]

bool berry::DebugUtil::PrintObjectSummary ( const QString &  className,
bool  details = false 
)
static

Definition at line 315 of file berryDebugUtil.cpp.

◆ PrintSmartPointerIDs()

void berry::DebugUtil::PrintSmartPointerIDs ( const Object objectPointer,
const QList< unsigned int > &  excludeList = QList<unsigned int>() 
)
static

Definition at line 254 of file berryDebugUtil.cpp.

◆ RegisterObject()

void berry::DebugUtil::RegisterObject ( const Object objectPointer)
static

◆ RegisterSmartPointer()

void berry::DebugUtil::RegisterSmartPointer ( unsigned int  smartPointerId,
const Object objectPointer,
bool  recordStack = false 
)
static

◆ RemoveObjectListener()

void berry::DebugUtil::RemoveObjectListener ( IDebugObjectListener listener)
static

◆ ResetObjectSummary()

void berry::DebugUtil::ResetObjectSummary ( )
static

Definition at line 283 of file berryDebugUtil.cpp.

◆ RestoreState()

void berry::DebugUtil::RestoreState ( const QDir &  path)
static

◆ SaveState()

void berry::DebugUtil::SaveState ( const QDir &  path)
static

◆ StopTracing() [1/3]

void berry::DebugUtil::StopTracing ( unsigned int  traceId)
static

Definition at line 137 of file berryDebugUtil.cpp.

References BERRY_INFO, and berry::IDebugObjectListener::Events::objTracingEvent.

Referenced by StopTracing(), and TraceClass().

◆ StopTracing() [2/3]

void berry::DebugUtil::StopTracing ( const Object obj)
static

Definition at line 150 of file berryDebugUtil.cpp.

References BERRY_INFO, and StopTracing().

◆ StopTracing() [3/3]

void berry::DebugUtil::StopTracing ( const QString &  className)
static

Definition at line 163 of file berryDebugUtil.cpp.

References berry::Object::GetClassName(), and IsTraced().

◆ TraceClass()

void berry::DebugUtil::TraceClass ( const QString &  className)
static

◆ TraceObject() [1/2]

void berry::DebugUtil::TraceObject ( const Object )
static

◆ TraceObject() [2/2]

void berry::DebugUtil::TraceObject ( unsigned int  traceId)
static

Definition at line 106 of file berryDebugUtil.cpp.

References BERRY_INFO, and TraceClass().

◆ UnregisterObject()

void berry::DebugUtil::UnregisterObject ( const Object objectPointer)
static

Definition at line 404 of file berryDebugUtil.cpp.

Referenced by RegisterObject(), and berry::Object::~Object().

◆ UnregisterSmartPointer()

void berry::DebugUtil::UnregisterSmartPointer ( unsigned int  smartPointerId,
const Object objectPointer 
)
static

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