VTK  9.6.20260416
vtkMeshCacheRunner Class Reference

An RAII class to easily use vtkDataObjectMeshCache. More...

#include <vtkMeshCacheRunner.h>

Public Member Functions

 vtkMeshCacheRunner (vtkDataObjectMeshCache *cache, vtkDataObject *input, vtkDataObject *output, bool alwaysUpdate)
 Initialize the runner.
 
 ~vtkMeshCacheRunner ()
 Cleanup temporary arrays, and update cache if AlwaysUpdateCache is true.
 
void UpdateCache ()
 Update the cache with output.
 
bool GetCacheLoaded ()
 Return true if the cache was loaded into output at construction.
 

Detailed Description

An RAII class to easily use vtkDataObjectMeshCache.

At construction, it tries to copy the cache to the output, with sanity checks. At destruction, it cleans up temporary data arrays that may have been used and optionally update the cache with output.

See also
vtkDataObjectMeshCache
Tests:
vtkMeshCacheRunner (Tests)

Definition at line 26 of file vtkMeshCacheRunner.h.

Constructor & Destructor Documentation

◆ vtkMeshCacheRunner()

vtkMeshCacheRunner::vtkMeshCacheRunner ( vtkDataObjectMeshCache * cache,
vtkDataObject * input,
vtkDataObject * output,
bool alwaysUpdate )

Initialize the runner.

Do sanity checks and try to copy the cache into output. If output was updated from cache, GetCacheLoaded will return true.

◆ ~vtkMeshCacheRunner()

vtkMeshCacheRunner::~vtkMeshCacheRunner ( )

Cleanup temporary arrays, and update cache if AlwaysUpdateCache is true.

Member Function Documentation

◆ UpdateCache()

void vtkMeshCacheRunner::UpdateCache ( )

Update the cache with output.

◆ GetCacheLoaded()

bool vtkMeshCacheRunner::GetCacheLoaded ( )

Return true if the cache was loaded into output at construction.


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