VTK  9.7.20260709
vtkCommonInformationKeyManager Class Reference

Manages key types in vtkCommon. More...

#include <vtkCommonInformationKeyManager.h>

Public Member Functions

 vtkCommonInformationKeyManager ()
 
 ~vtkCommonInformationKeyManager ()
 

Static Public Member Functions

static void Register (vtkInformationKey *key)
 Called by constructors of vtkInformationKey subclasses defined in vtkCommon to register themselves with the manager.
 
static void Unregister (vtkInformationKey *key)
 Remove a key from the manager's deletion list.
 

Detailed Description

Manages key types in vtkCommon.

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

Definition at line 24 of file vtkCommonInformationKeyManager.h.

Constructor & Destructor Documentation

◆ vtkCommonInformationKeyManager()

vtkCommonInformationKeyManager::vtkCommonInformationKeyManager ( )

◆ ~vtkCommonInformationKeyManager()

vtkCommonInformationKeyManager::~vtkCommonInformationKeyManager ( )

Member Function Documentation

◆ Register()

static void vtkCommonInformationKeyManager::Register ( vtkInformationKey * key)
static

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

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

◆ Unregister()

static void vtkCommonInformationKeyManager::Unregister ( vtkInformationKey * key)
static

Remove a key from the manager's deletion list.

Called from the key's destructor when the key is destroyed before static finalization (e.g. when Python releases a key created via MakeKey).


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