#include <vtkDebugLeaks.h>
Inheritance diagram for vtkDebugLeaks:
Public Methods | |
virtual const char * | GetClassName () |
virtual int | IsA (const char *type) |
Static Public Methods | |
vtkDebugLeaks * | New () |
int | IsTypeOf (const char *type) |
vtkDebugLeaks * | SafeDownCast (vtkObject *o) |
void | ConstructClass (const char *classname) |
void | DestructClass (const char *classname) |
void | PrintCurrentLeaks () |
void | DeleteTable () |
Protected Methods | |
vtkDebugLeaks () | |
virtual | ~vtkDebugLeaks () |
vtkDebugLeaks (const vtkDebugLeaks &) | |
void | operator= (const vtkDebugLeaks &) |
vtkDebugLeaks is used to report memory leaks at the exit of the program. It uses the vtkObjectFactory to intercept the construction of all VTK objects. It uses the UnRegister method of vtkObject to intercept the destruction of all objects. A table of object name to number of instances is kept. At the exit of the program if there are still VTK objects around it will print them out. To enable this class add the flag -DVTK_DEBUG_LEAKS to the compile line, and rebuild vtkObject and vtkObjectFactory.
Definition at line 63 of file vtkDebugLeaks.h.
|
Definition at line 82 of file vtkDebugLeaks.h. |
|
Definition at line 83 of file vtkDebugLeaks.h. |
|
Definition at line 84 of file vtkDebugLeaks.h. |
|
Create an object with Debug turned off, modified time initialized to zero, and reference counting on. Reimplemented from vtkObject. |
|
Return the class name as a string. This method is defined in all subclasses of vtkObject with the vtkTypeMacro found in vtkSetGet.h. Reimplemented from vtkObject. |
|
Return 1 if this class type is the same type of (or a subclass of) the named class. Returns 0 otherwise. This method works in combination with vtkTypeMacro found in vtkSetGet.h. Reimplemented from vtkObject. |
|
Return 1 if this class is the same type of (or a subclass of) the named class. Returns 0 otherwise. This method works in combination with vtkTypeMacro found in vtkSetGet.h. Reimplemented from vtkObject. |
|
Will cast the supplied object to vtkObject* is this is a safe operation (i.e., a safe downcast); otherwise NULL is returned. This method is defined in all subclasses of vtkObject with the vtkTypeMacro found in vtkSetGet.h. Reimplemented from vtkObject. |
|
Call this when creating a class of a given name. Referenced by vtkObjectFactoryCollection::New(), and vtkDirectory::New().
|
|
Call this when deleting a class of a given name. |
|
Print all the values in the table. |
|
Clean up the table memory. |
|
Definition at line 85 of file vtkDebugLeaks.h. |