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

Method Append

Common/Core/vtkInformationObjectBaseVectorKey.cxx:82–97  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

80
81//------------------------------------------------------------------------------
82void vtkInformationObjectBaseVectorKey::Append(vtkInformation* info, vtkObjectBase* aValue)
83{
84 if (!this->ValidateDerivedType(info, aValue))
85 {
86 return;
87 }
88 //
89 vtkInformationObjectBaseVectorValue* base = this->GetObjectBaseVector(info);
90 //
91 if (aValue != nullptr)
92 {
93 aValue->Register(base);
94 }
95 //
96 base->GetVector().emplace_back(aValue);
97}
98
99//------------------------------------------------------------------------------
100void vtkInformationObjectBaseVectorKey::Set(vtkInformation* info, vtkObjectBase* aValue, int i)

Callers

nothing calls this directly

Calls 4

ValidateDerivedTypeMethod · 0.95
GetObjectBaseVectorMethod · 0.95
RegisterMethod · 0.45
emplace_backMethod · 0.45

Tested by

no test coverage detected