VTK
9.5.20250901
|
RAII class to create an NSAutoreleasePool. More...
#include <vtkCocoaAutoreleasePool.h>
Public Member Functions | |
vtkCocoaAutoreleasePool () | |
~vtkCocoaAutoreleasePool () | |
void | Release () |
Release the pool to reclaim the memory. | |
RAII class to create an NSAutoreleasePool.
Definition at line 18 of file vtkCocoaAutoreleasePool.h.
vtkCocoaAutoreleasePool::vtkCocoaAutoreleasePool | ( | ) |
vtkCocoaAutoreleasePool::~vtkCocoaAutoreleasePool | ( | ) |
void vtkCocoaAutoreleasePool::Release | ( | ) |
Release the pool to reclaim the memory.
When using this class from Python, call this method at the end of the current scope, since object lifetimes in Python are not sufficiently deterministic for basic RAII. In C++, this method is unnecessary and you can rely on the destructor to release the pool.