VTK  9.4.20250311
Public Member Functions | Static Public Member Functions | List of all members
vtkFilteringInformationKeyManager Class Reference

Manages key types in vtkFiltering. More...

#include <vtkFilteringInformationKeyManager.h>

Public Member Functions

 vtkFilteringInformationKeyManager ()
 
 ~vtkFilteringInformationKeyManager ()
 

Static Public Member Functions

static void Register (vtkInformationKey *key)
 Called by constructors of vtkInformationKey subclasses defined in vtkFiltering to register themselves with the manager.
 
static void AddFinalizer (std::function< void()> finalizer)
 Ensure that finalizer is invoked before ClassFinalizer() runs.
 

Detailed Description

Manages key types in vtkFiltering.

vtkFilteringInformationKeyManager is included in the header of any subclass of vtkInformationKey defined in the vtkFiltering library. It makes sure that the table of keys is created before and destroyed after it is used.

Definition at line 29 of file vtkFilteringInformationKeyManager.h.

Constructor & Destructor Documentation

◆ vtkFilteringInformationKeyManager()

vtkFilteringInformationKeyManager::vtkFilteringInformationKeyManager ( )

◆ ~vtkFilteringInformationKeyManager()

vtkFilteringInformationKeyManager::~vtkFilteringInformationKeyManager ( )

Member Function Documentation

◆ Register()

static void vtkFilteringInformationKeyManager::Register ( vtkInformationKey key)
static

Called by constructors of vtkInformationKey subclasses defined in vtkFiltering to register themselves with the manager.

The instances will be deleted when vtkFiltering is unloaded on program exit.

◆ AddFinalizer()

static void vtkFilteringInformationKeyManager::AddFinalizer ( std::function< void()>  finalizer)
static

Ensure that finalizer is invoked before ClassFinalizer() runs.

If your application holds VTK objects (i.e., instances of classes that inherit vtkObjectBase) for its duration, then adding finalizer function that frees them will prevent this class's static ClassFinalizer() method from freeing keys that may be in use.


The documentation for this class was generated from the following file: