 |
VTK
9.1.0
|
Go to the documentation of this file.
49 #ifndef vtkDebugLeaks_h
50 #define vtkDebugLeaks_h
52 #include "vtkCommonCoreModule.h"
60 class vtkDebugLeaksHashTable;
61 class vtkDebugLeaksTraceManager;
125 static vtkDebugLeaksHashTable* MemoryTable;
126 static vtkDebugLeaksTraceManager* TraceManager;
127 static std::mutex* CriticalSection;
129 static int ExitError;
146 #endif // vtkDebugLeaks_h
void operator=(const vtkObjectBase &)
~vtkDebugLeaks() override=default
static void SetExitError(int)
Get/Set flag for exiting with an error when leaks are present.
static void ClassInitialize()
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
virtual void DestructingObject(vtkObjectBase *)=0
abstract base class for most VTK objects
static int GetExitError()
Get/Set flag for exiting with an error when leaks are present.
static int DisplayMessageBox(const char *)
static void ConstructingObject(vtkObjectBase *object)
static void ClassFinalize()
static int PrintCurrentLeaks()
Print all the values in the table.
static void ConstructClass(const char *className)
Call this when creating a vtkCommand or subclasses.
static void ConstructClass(vtkObjectBase *object)
Call this when creating a class.
static vtkDebugLeaksObserver * GetDebugLeaksObserver()
abstract base class for most VTK objects
a simple class to control print indentation
virtual ~vtkDebugLeaksObserver()=default
static void DestructClass(vtkObjectBase *object)
Call this when deleting a class.
identify memory leaks at program termination vtkDebugLeaks is used to report memory leaks at the exit...
Manages the vtkDebugLeaks singleton.
virtual void ConstructingObject(vtkObjectBase *)=0
static void DestructingObject(vtkObjectBase *object)
static void SetDebugLeaksObserver(vtkDebugLeaksObserver *observer)
static void DestructClass(const char *className)
Call this when deleting vtkCommand or a subclass.
static vtkDebugLeaks * New()