MCPcopy Create free account
hub / github.com/Kitware/VTK / UseCacheIfPossible

Method UseCacheIfPossible

Filters/ParallelDIY2/vtkGhostCellsGenerator.cxx:308–326  ·  view source on GitHub ↗

----------------------------------------------------------------------------

Source from the content-addressed store, hash-verified

306
307//----------------------------------------------------------------------------
308bool vtkGhostCellsGenerator::UseCacheIfPossible(vtkDataObject* input, vtkDataObject* output)
309{
310 assert(input && output);
311 if (!this->MeshCache->IsSupportedData(input))
312 {
313 return false;
314 }
315
316 this->MeshCache->SetOriginalDataObject(input);
317
318 auto status = this->MeshCache->GetStatus();
319 if (status.enabled())
320 {
321 this->MeshCache->CopyCacheToDataObject(output);
322 return true;
323 }
324
325 return false;
326}
327
328//----------------------------------------------------------------------------
329void vtkGhostCellsGenerator::UpdateCache(vtkDataObject* updatedOutput)

Callers 1

ExecuteMethod · 0.95

Calls 6

IsSupportedDataMethod · 0.80
SetOriginalDataObjectMethod · 0.80
GetStatusMethod · 0.80
enabledMethod · 0.80
CopyCacheToDataObjectMethod · 0.80
assertFunction · 0.50

Tested by

no test coverage detected