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

Function DeepCopy

Common/Core/vtkImplicitArray.h:310–326  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

308 }
309 using vtkDataArray::DeepCopy;
310 void DeepCopy(vtkDataArray* da) override
311 {
312 if (da == nullptr || da == this)
313 {
314 return;
315 }
316 // dispatch to the templated version if possible
317 if (auto otherImplicit = vtkImplicitArray<BackendT, ArrayTypeTag::value>::FastDownCast(da))
318 {
319 this->ImplicitDeepCopy(otherImplicit);
320 }
321 else
322 {
323 // otherwise fallback to generic implementation that will copy all values
324 this->vtkDataArray::DeepCopy(da);
325 }
326 }
327 ///@}
328
329 ///@{

Callers

nothing calls this directly

Calls 1

FastDownCastFunction · 0.70

Tested by

no test coverage detected