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

Method GetObjectBaseVector

Common/Core/vtkInformationObjectBaseVectorKey.cxx:44–62  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

42
43//------------------------------------------------------------------------------
44vtkInformationObjectBaseVectorValue* vtkInformationObjectBaseVectorKey::GetObjectBaseVector(
45 vtkInformation* info)
46{
47 // Grab the vector associated with this key.
48 vtkInformationObjectBaseVectorValue* base =
49 static_cast<vtkInformationObjectBaseVectorValue*>(this->GetAsObjectBase(info));
50
51 // If we don't already have a vector then associated,
52 // we will create it here.
53 if (base == nullptr)
54 {
55 base = new vtkInformationObjectBaseVectorValue;
56 base->InitializeObjectBase();
57 this->SetAsObjectBase(info, base);
58 base->Delete();
59 }
60
61 return base;
62}
63
64//------------------------------------------------------------------------------
65bool vtkInformationObjectBaseVectorKey::ValidateDerivedType(

Callers 7

AppendMethod · 0.95
SetMethod · 0.95
RemoveMethod · 0.95
SetRangeMethod · 0.95
ResizeMethod · 0.95
ClearMethod · 0.95
ShallowCopyMethod · 0.95

Calls 4

InitializeObjectBaseMethod · 0.80
DeleteMethod · 0.65
GetAsObjectBaseMethod · 0.45
SetAsObjectBaseMethod · 0.45

Tested by

no test coverage detected