Common/vtkDebugLeaksManager.h Source File

Main Page Class Hierarchy Alphabetical List Compound List File List Compound Members File Members Related Pages

# Common/vtkDebugLeaksManager.h

Go to the documentation of this file.

    00001 /*=========================================================================
    00002
    00003   Program:   Visualization Toolkit
    00004   Module:    $RCSfile: vtkDebugLeaksManager.h,v $
    00005   Language:  C++
    00006
    00007   Copyright (c) 1993-2002 Ken Martin, Will Schroeder, Bill Lorensen
    00008   All rights reserved.
    00009   See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
    00010
    00011      This software is distributed WITHOUT ANY WARRANTY; without even
    00012      the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
    00013      PURPOSE.  See the above copyright notice for more information.
    00014
    00015 =========================================================================*/
    00039 #ifndef __vtkDebugLeaksManager_h
    00040 #define __vtkDebugLeaksManager_h
    00041
    00042 #include "vtkSystemIncludes.h"
    00043
    00044 class VTK_COMMON_EXPORT vtkDebugLeaksManager
    00045 {
    00046 public:
    00047   vtkDebugLeaksManager();
    00048   ~vtkDebugLeaksManager();
    00049 private:
    00050   static unsigned int Count;
    00051 };
    00052
    00053 // This instance will show up in any translation unit that uses
    00054 // vtkDebugLeaks or that has a singleton.  It will make sure
    00055 // vtkDebugLeaks is initialized before it is used and is the last
    00056 // static object destroyed.
    00057 static vtkDebugLeaksManager vtkDebugLeaksManagerInstance;
    00058
    00059 #endif