VTK  9.3.20240327
vtkGarbageCollectorManager.h
Go to the documentation of this file.
1 // SPDX-FileCopyrightText: Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
2 // SPDX-License-Identifier: BSD-3-Clause
13 #ifndef vtkGarbageCollectorManager_h
14 #define vtkGarbageCollectorManager_h
15 
16 #include "vtkCommonCoreModule.h" // For export macro
17 #include "vtkSystemIncludes.h"
18 
19 #include "vtkDebugLeaksManager.h" // DebugLeaks is around longer than
20  // the garbage collector.
21 
22 VTK_ABI_NAMESPACE_BEGIN
23 class VTKCOMMONCORE_EXPORT vtkGarbageCollectorManager
24 {
25 public:
28 
29 private:
31  vtkGarbageCollectorManager& operator=(const vtkGarbageCollectorManager&) = delete;
32 };
33 
34 // This instance will show up in any translation unit that uses
35 // vtkGarbageCollector or that has a singleton. It will make sure
36 // vtkGarbageCollector is initialized before it is used finalized when
37 // it is done being used.
39 
40 VTK_ABI_NAMESPACE_END
41 #endif
42 // VTK-HeaderTest-Exclude: vtkGarbageCollectorManager.h
Manages the vtkGarbageCollector singleton.
static vtkGarbageCollectorManager vtkGarbageCollectorManagerInstance