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

Method ShallowCopy

Common/Core/vtkInformationIntegerKey.cxx:68–78  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

66
67//------------------------------------------------------------------------------
68void vtkInformationIntegerKey::ShallowCopy(vtkInformation* from, vtkInformation* to)
69{
70 if (this->Has(from))
71 {
72 this->Set(to, this->Get(from));
73 }
74 else
75 {
76 this->SetAsObjectBase(to, nullptr); // doesn't exist in from, so remove the key
77 }
78}
79
80//------------------------------------------------------------------------------
81void vtkInformationIntegerKey::Print(ostream& os, vtkInformation* info)

Callers

nothing calls this directly

Calls 4

SetMethod · 0.95
GetMethod · 0.95
HasMethod · 0.45
SetAsObjectBaseMethod · 0.45

Tested by

no test coverage detected