VTK  9.1.0
Public Member Functions | List of all members
vtkObjectBase::vtkMemkindRAII Class Reference

A class to help modify and restore the global UsingMemkind state, like SetUsingMemkind(newValue), but safer. More...

#include <vtkObjectBase.h>

Public Member Functions

 vtkMemkindRAII (bool newValue)
 
 ~vtkMemkindRAII ()
 
 vtkMemkindRAII (vtkMemkindRAII const &)=default
 

Detailed Description

A class to help modify and restore the global UsingMemkind state, like SetUsingMemkind(newValue), but safer.

Declare it on the stack in a function where you want to make a temporary change. When the function returns it will restore the original value.

Definition at line 233 of file vtkObjectBase.h.

Constructor & Destructor Documentation

◆ vtkMemkindRAII() [1/2]

vtkObjectBase::vtkMemkindRAII::vtkMemkindRAII ( bool  newValue)

◆ ~vtkMemkindRAII()

vtkObjectBase::vtkMemkindRAII::~vtkMemkindRAII ( )

◆ vtkMemkindRAII() [2/2]

vtkObjectBase::vtkMemkindRAII::vtkMemkindRAII ( vtkMemkindRAII const &  )
default

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