ActiViz .NET  5.8.0
Public Member Functions | Static Public Member Functions | Public Attributes | Static Public Attributes | Protected Member Functions | Private Member Functions | Static Private Member Functions
Kitware.VTK.vtkDebugLeaks Class Reference

vtkDebugLeaks - identify memory leaks at program termination More...

Inheritance diagram for Kitware.VTK.vtkDebugLeaks:
[legend]
Collaboration diagram for Kitware.VTK.vtkDebugLeaks:
[legend]

List of all members.

Public Member Functions

 vtkDebugLeaks (IntPtr rawCppThis, bool callDisposalMethod, bool strong)
 Automatically generated constructor - called from generated code. DO NOT call directly.
 vtkDebugLeaks ()
 Undocumented Block.
override int IsA (string type)
 Undocumented Block.
new vtkDebugLeaks NewInstance ()
 Undocumented Block.

Static Public Member Functions

static new vtkDebugLeaks New ()
 Undocumented Block.
static void ConstructClass (string classname)
 Call this when creating a class of a given name.
static void DestructClass (string classname)
 Call this when deleting a class of a given name.
static int GetExitError ()
 Get/Set flag for exiting with an error when leaks are present. Default is on when testing and off otherwise.
static new int IsTypeOf (string type)
 Undocumented Block.
static int PrintCurrentLeaks ()
 Print all the values in the table. Returns non-zero if there were leaks.
static new vtkDebugLeaks SafeDownCast (vtkObjectBase o)
 Undocumented Block.
static void SetExitError (int arg0)
 Get/Set flag for exiting with an error when leaks are present. Default is on when testing and off otherwise.

Public Attributes

new const string MRFullTypeName = "Kitware.VTK.vtkDebugLeaks"
 Automatically generated type registration mechanics.

Static Public Attributes

static new readonly string MRClassNameKey = "13vtkDebugLeaks"
 Automatically generated type registration mechanics.

Protected Member Functions

override void Dispose (bool disposing)
 Automatically generated protected Dispose method - called from public Dispose or the C# destructor. DO NOT call directly.

Private Member Functions

static internal IntPtr vtkDebugLeaks_New (ref uint mteStatus, ref uint mteIndex, ref uint rawRefCount)
static internal void vtkDebugLeaks_ConstructClass_01 (string classname)
static internal void vtkDebugLeaks_DestructClass_02 (string classname)
static internal int vtkDebugLeaks_GetExitError_03 ()
static internal int vtkDebugLeaks_IsA_04 (HandleRef pThis, string type)
static internal int vtkDebugLeaks_IsTypeOf_05 (string type)
static internal IntPtr vtkDebugLeaks_NewInstance_07 (HandleRef pThis, ref uint mteStatus, ref uint mteIndex, ref uint rawRefCount)
static internal int vtkDebugLeaks_PrintCurrentLeaks_08 ()
static internal IntPtr vtkDebugLeaks_SafeDownCast_09 (HandleRef o, ref uint mteStatus, ref uint mteIndex, ref uint rawRefCount)
static internal void vtkDebugLeaks_SetExitError_10 (int arg0)

Static Private Member Functions

static vtkDebugLeaks ()
 Automatically generated type registration mechanics.

Detailed Description

vtkDebugLeaks - identify memory leaks at program termination

Description 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.


Constructor & Destructor Documentation

static Kitware.VTK.vtkDebugLeaks.vtkDebugLeaks ( ) [static, private]

Automatically generated type registration mechanics.

Kitware.VTK.vtkDebugLeaks.vtkDebugLeaks ( IntPtr  rawCppThis,
bool  callDisposalMethod,
bool  strong 
)

Automatically generated constructor - called from generated code. DO NOT call directly.

Undocumented Block.


Member Function Documentation

static void Kitware.VTK.vtkDebugLeaks.ConstructClass ( string  classname) [static]

Call this when creating a class of a given name.

static void Kitware.VTK.vtkDebugLeaks.DestructClass ( string  classname) [static]

Call this when deleting a class of a given name.

override void Kitware.VTK.vtkDebugLeaks.Dispose ( bool  disposing) [protected]

Automatically generated protected Dispose method - called from public Dispose or the C# destructor. DO NOT call directly.

Reimplemented from Kitware.VTK.vtkObject.

static int Kitware.VTK.vtkDebugLeaks.GetExitError ( ) [static]

Get/Set flag for exiting with an error when leaks are present. Default is on when testing and off otherwise.

override int Kitware.VTK.vtkDebugLeaks.IsA ( string  type) [virtual]

Undocumented Block.

Reimplemented from Kitware.VTK.vtkObject.

static new int Kitware.VTK.vtkDebugLeaks.IsTypeOf ( string  type) [static]

Undocumented Block.

Reimplemented from Kitware.VTK.vtkObject.

Undocumented Block.

Reimplemented from Kitware.VTK.vtkObject.

Undocumented Block.

Reimplemented from Kitware.VTK.vtkObject.

Print all the values in the table. Returns non-zero if there were leaks.

Undocumented Block.

Reimplemented from Kitware.VTK.vtkObject.

Here is the call graph for this function:

static void Kitware.VTK.vtkDebugLeaks.SetExitError ( int  arg0) [static]

Get/Set flag for exiting with an error when leaks are present. Default is on when testing and off otherwise.

static internal void Kitware.VTK.vtkDebugLeaks.vtkDebugLeaks_ConstructClass_01 ( string  classname) [private]
static internal void Kitware.VTK.vtkDebugLeaks.vtkDebugLeaks_DestructClass_02 ( string  classname) [private]
static internal int Kitware.VTK.vtkDebugLeaks.vtkDebugLeaks_IsA_04 ( HandleRef  pThis,
string  type 
) [private]
static internal int Kitware.VTK.vtkDebugLeaks.vtkDebugLeaks_IsTypeOf_05 ( string  type) [private]
static internal IntPtr Kitware.VTK.vtkDebugLeaks.vtkDebugLeaks_New ( ref uint  mteStatus,
ref uint  mteIndex,
ref uint  rawRefCount 
) [private]
static internal IntPtr Kitware.VTK.vtkDebugLeaks.vtkDebugLeaks_NewInstance_07 ( HandleRef  pThis,
ref uint  mteStatus,
ref uint  mteIndex,
ref uint  rawRefCount 
) [private]
static internal IntPtr Kitware.VTK.vtkDebugLeaks.vtkDebugLeaks_SafeDownCast_09 ( HandleRef  o,
ref uint  mteStatus,
ref uint  mteIndex,
ref uint  rawRefCount 
) [private]
static internal void Kitware.VTK.vtkDebugLeaks.vtkDebugLeaks_SetExitError_10 ( int  arg0) [private]

Member Data Documentation

new readonly string Kitware.VTK.vtkDebugLeaks.MRClassNameKey = "13vtkDebugLeaks" [static]

Automatically generated type registration mechanics.

Reimplemented from Kitware.VTK.vtkObject.

new const string Kitware.VTK.vtkDebugLeaks.MRFullTypeName = "Kitware.VTK.vtkDebugLeaks"

Automatically generated type registration mechanics.

Reimplemented from Kitware.VTK.vtkObject.


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