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

Method InsertValue

Common/Core/vtkVariantArray.cxx:729–741  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

727
728//------------------------------------------------------------------------------
729void vtkVariantArray::InsertValue(vtkIdType id, ValueType value)
730{
731 if (id >= this->Size)
732 {
733 if (!this->ResizeAndExtend(id + 1))
734 {
735 return;
736 }
737 }
738 this->Array[id] = value;
739 this->MaxId = std::max(id, this->MaxId);
740 this->DataElementChanged(id);
741}
742
743//------------------------------------------------------------------------------
744void vtkVariantArray::SetVariantValue(vtkIdType id, ValueType value)

Callers 5

InsertTupleMethod · 0.95
InsertTuplesMethod · 0.95
InsertVariantValueMethod · 0.95
InsertNextValueMethod · 0.95

Calls 3

ResizeAndExtendMethod · 0.95
DataElementChangedMethod · 0.95
maxFunction · 0.50

Tested by

no test coverage detected