VTK: Common/Core/vtkGarbageCollectorManager.h Source File

| VTK 9.3.1

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:
26 vtkGarbageCollectorManager();
27 ~vtkGarbageCollectorManager();
28
29 private:
30 vtkGarbageCollectorManager(const vtkGarbageCollectorManager&) = delete;
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.
38 static vtkGarbageCollectorManager vtkGarbageCollectorManagerInstance;
39
40 VTK_ABI_NAMESPACE_END
41 #endif
42 // VTK-HeaderTest-Exclude: vtkGarbageCollectorManager.h
vtkGarbageCollectorManager
Manages the vtkGarbageCollector singleton.
Definition: vtkGarbageCollectorManager.h:24
vtkGarbageCollectorManager::vtkGarbageCollectorManager
vtkGarbageCollectorManager()
vtkGarbageCollectorManager::~vtkGarbageCollectorManager
~vtkGarbageCollectorManager()
vtkDebugLeaksManager.h
vtkGarbageCollectorManagerInstance
static vtkGarbageCollectorManager vtkGarbageCollectorManagerInstance
Definition: vtkGarbageCollectorManager.h:38
vtkSystemIncludes.h