49 #ifndef vtkDebugLeaks_h
50 #define vtkDebugLeaks_h
52 #include "vtkCommonCoreModule.h"
55 #include "vtkToolkits.h"
58 class vtkDebugLeaksHashTable;
112 static vtkDebugLeaksHashTable* MemoryTable;
115 static int ExitError;
Manages the vtkDebugLeaks singleton.
virtual void DestructingObject(vtkObjectBase *)=0
virtual ~vtkDebugLeaksObserver()
virtual void ConstructingObject(vtkObjectBase *)=0
identify memory leaks at program termination vtkDebugLeaks is used to report memory leaks at the exit...
~vtkDebugLeaks() override
static vtkDebugLeaks * New()
static void SetExitError(int)
static void ConstructingObject(vtkObjectBase *object)
static void ClassInitialize()
static void SetDebugLeaksObserver(vtkDebugLeaksObserver *observer)
static int PrintCurrentLeaks()
Print all the values in the table.
static int DisplayMessageBox(const char *)
static void DestructClass(const char *classname)
Call this when deleting a class of a given name.
static void DestructingObject(vtkObjectBase *object)
static int GetExitError()
Get/Set flag for exiting with an error when leaks are present.
static vtkDebugLeaksObserver * GetDebugLeaksObserver()
static void ConstructClass(const char *classname)
Call this when creating a class of a given name.
static void ClassFinalize()
abstract base class for most VTK objects
void operator=(const vtkObjectBase &)
abstract base class for most VTK objects
Critical section locking class.