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

dox/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 =========================================================================*/ 00028 #ifndef __vtkDebugLeaksManager_h 00029 #define __vtkDebugLeaksManager_h 00030 00031 #include "vtkSystemIncludes.h" 00032 00033 class VTK_COMMON_EXPORT vtkDebugLeaksManager 00034 { 00035 public: 00036 vtkDebugLeaksManager(); 00037 ~vtkDebugLeaksManager(); 00038 private: 00039 static unsigned int Count; 00040 }; 00041 00042 // This instance will show up in any translation unit that uses 00043 // vtkDebugLeaks or that has a singleton. It will make sure 00044 // vtkDebugLeaks is initialized before it is used and is the last 00045 // static object destroyed. 00046 static vtkDebugLeaksManager vtkDebugLeaksManagerInstance; 00047 00048 #endif