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

Method FreeObjectById

Web/Core/vtkObjectIdMap.cxx:112–122  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

110
111//------------------------------------------------------------------------------
112bool vtkObjectIdMap::FreeObjectById(vtkTypeUInt32 id)
113{
114 auto iter = this->Internals->Object.find(id);
115 auto found = iter != this->Internals->Object.end();
116 if (found)
117 {
118 this->Internals->GlobalId.erase(iter->second);
119 this->Internals->Object.erase(iter);
120 }
121 return found;
122}
123VTK_ABI_NAMESPACE_END

Callers 1

freeObjectByIdMethod · 0.80

Calls 3

findMethod · 0.45
endMethod · 0.45
eraseMethod · 0.45

Tested by

no test coverage detected