VTK  9.7.1
vtkCocoaAutoreleasePool.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
3 
4 #ifndef vtkCocoaAutoreleasePool_h
5 #define vtkCocoaAutoreleasePool_h
6 
7 #include "vtkRenderingUIModule.h" // For export macro
8 #include "vtkSystemIncludes.h"
9 
17 VTK_ABI_NAMESPACE_BEGIN
18 class VTKRENDERINGUI_EXPORT vtkCocoaAutoreleasePool
19 {
20 public:
23 
31  void Release();
32 
33 private:
35  vtkCocoaAutoreleasePool& operator=(const vtkCocoaAutoreleasePool&) = delete;
36 
37  void* Pool; // Pointer to NSAutoreleasePool
38 };
39 
40 VTK_ABI_NAMESPACE_END
41 
42 #endif // vtkCocoaAutoreleasePool_h
RAII class to create an NSAutoreleasePool.