VTK
dox/Common/Core/vtkGarbageCollectorManager.h
Go to the documentation of this file.
00001 /*=========================================================================
00002 
00003   Program:   Visualization Toolkit
00004   Module:    vtkGarbageCollectorManager.h
00005 
00006   Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
00007   All rights reserved.
00008   See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
00009 
00010      This software is distributed WITHOUT ANY WARRANTY; without even
00011      the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
00012      PURPOSE.  See the above copyright notice for more information.
00013 
00014 =========================================================================*/
00024 #ifndef __vtkGarbageCollectorManager_h
00025 #define __vtkGarbageCollectorManager_h
00026 
00027 #include "vtkCommonCoreModule.h" // For export macro
00028 #include "vtkSystemIncludes.h"
00029 
00030 #include "vtkDebugLeaksManager.h" // DebugLeaks is around longer than
00031                                   // the garbage collector.
00032 
00033 class VTKCOMMONCORE_EXPORT vtkGarbageCollectorManager
00034 {
00035 public:
00036   vtkGarbageCollectorManager();
00037   ~vtkGarbageCollectorManager();
00038 };
00039 
00040 // This instance will show up in any translation unit that uses
00041 // vtkGarbageCollector or that has a singleton.  It will make sure
00042 // vtkGarbageCollector is initialized before it is used finalized when
00043 // it is done being used.
00044 static vtkGarbageCollectorManager vtkGarbageCollectorManagerInstance;
00045 
00046 #endif
00047 // VTK-HeaderTest-Exclude: vtkGarbageCollectorManager.h