40 #ifndef vtkDebugLeaks_h
41 #define vtkDebugLeaks_h
43 #include "vtkCommonCoreModule.h"
53 VTK_ABI_NAMESPACE_BEGIN
54 class vtkDebugLeaksHashTable;
55 class vtkDebugLeaksTraceManager;
73 static void ConstructClass(
const char* className);
83 static void DestructClass(
const char* className);
89 static int PrintCurrentLeaks();
96 static int GetExitError();
97 static void SetExitError(
int);
122 static int DisplayMessageBox(
const char*);
124 static void ClassInitialize();
125 static void ClassFinalize();
136 static vtkDebugLeaksHashTable* MemoryTable;
137 static vtkDebugLeaksTraceManager* TraceManager;
138 static std::mutex* CriticalSection;
140 static int ExitError;
157 VTK_ABI_NAMESPACE_END
158 #endif // vtkDebugLeaks_h
abstract base class for most VTK objects
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
a simple class to control print indentation
friend class vtkDebugLeaks
abstract base class for most VTK objects
identify memory leaks at program termination vtkDebugLeaks is used to report memory leaks at the exit...
static std::vector< std::function< void()> > * Finalizers
static vtkObject * New()
Create an object with Debug turned off, modified time initialized to zero, and reference counting on...
void operator=(const vtkObjectBase &)
Manages the vtkDebugLeaks singleton.