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

Method FreeObject

Web/Core/vtkObjectIdMap.cxx:99–109  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

97
98//------------------------------------------------------------------------------
99bool vtkObjectIdMap::FreeObject(vtkObject* obj)
100{
101 auto iter = this->Internals->GlobalId.find(obj);
102 auto found = iter != this->Internals->GlobalId.end();
103 if (found)
104 {
105 this->Internals->Object.erase(iter->second);
106 this->Internals->GlobalId.erase(iter);
107 }
108 return found;
109}
110
111//------------------------------------------------------------------------------
112bool vtkObjectIdMap::FreeObjectById(vtkTypeUInt32 id)

Callers 1

freeObjectMethod · 0.80

Calls 3

findMethod · 0.45
endMethod · 0.45
eraseMethod · 0.45

Tested by

no test coverage detected