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

Method DeepCopy

Common/DataModel/vtkArrayData.cxx:161–174  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

159}
160
161void vtkArrayData::DeepCopy(vtkDataObject* other)
162{
163 if (vtkArrayData* const array_data = vtkArrayData::SafeDownCast(other))
164 {
165 this->ClearArrays();
166 for (size_t i = 0; i != array_data->Implementation->Arrays.size(); ++i)
167 {
168 this->Implementation->Arrays.push_back(array_data->Implementation->Arrays[i]->DeepCopy());
169 }
170 this->Modified();
171 }
172
173 Superclass::DeepCopy(other);
174}
175VTK_ABI_NAMESPACE_END

Callers

nothing calls this directly

Calls 5

ClearArraysMethod · 0.95
DeepCopyFunction · 0.70
sizeMethod · 0.45
push_backMethod · 0.45
ModifiedMethod · 0.45

Tested by

no test coverage detected