VTK  9.5.20250903
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
17VTK_ABI_NAMESPACE_BEGIN
18class VTKRENDERINGUI_EXPORT vtkCocoaAutoreleasePool
19{
20public:
23
31 void Release();
32
33private:
35 vtkCocoaAutoreleasePool& operator=(const vtkCocoaAutoreleasePool&) = delete;
36
37 void* Pool; // Pointer to NSAutoreleasePool
38};
39
40VTK_ABI_NAMESPACE_END
41
42#endif // vtkCocoaAutoreleasePool_h
RAII class to create an NSAutoreleasePool.
void Release()
Release the pool to reclaim the memory.