VTK  9.3.20240419
vtkDebugLeaksManager.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 vtkDebugLeaksManager_h
14 #define vtkDebugLeaksManager_h
15 
16 #include "vtkCommonCoreModule.h" // For export macro
17 #include "vtkSystemIncludes.h"
18 
19 VTK_ABI_NAMESPACE_BEGIN
20 class VTKCOMMONCORE_EXPORT vtkDebugLeaksManager
21 {
22 public:
25 
26 private:
28  vtkDebugLeaksManager& operator=(const vtkDebugLeaksManager&) = delete;
29 };
30 
31 // This instance will show up in any translation unit that uses
32 // vtkDebugLeaks or that has a singleton. It will make sure
33 // vtkDebugLeaks is initialized before it is used and is the last
34 // static object destroyed.
36 
37 VTK_ABI_NAMESPACE_END
38 #endif
39 // VTK-HeaderTest-Exclude: vtkDebugLeaksManager.h
Manages the vtkDebugLeaks singleton.
static vtkDebugLeaksManager vtkDebugLeaksManagerInstance