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

Method Reset

Common/DataModel/vtkGenericAttributeCollection.cxx:277–288  ·  view source on GitHub ↗

------------------------------------------------------------------------------ Description: Remove all attributes.

Source from the content-addressed store, hash-verified

275// Description:
276// Remove all attributes.
277void vtkGenericAttributeCollection::Reset()
278{
279 for (unsigned int i = 0; i < this->AttributeInternalVector->Vector.size(); ++i)
280 {
281 this->AttributeInternalVector->Vector[i]->Delete();
282 }
283 this->AttributeInternalVector->Vector.clear();
284 this->AttributeIndices->Vector.clear();
285 this->Modified();
286
287 assert("post: is_empty" && this->IsEmpty());
288}
289
290//------------------------------------------------------------------------------
291// Description:

Callers

nothing calls this directly

Calls 6

IsEmptyMethod · 0.95
DeleteMethod · 0.65
assertFunction · 0.50
sizeMethod · 0.45
clearMethod · 0.45
ModifiedMethod · 0.45

Tested by

no test coverage detected