MCPcopy Create free account
hub / github.com/RavEngine/RavEngine / removeId

Method removeId

deps/physx/physx/source/common/src/CmCollection.cpp:93–103  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

91}
92
93void Collection::removeId(PxSerialObjectId id)
94{
95 PX_CHECK_AND_RETURN(id != PX_SERIAL_OBJECT_ID_INVALID, "PxCollection::removeId called with PxSerialObjectId being set to PX_SERIAL_OBJECT_ID_INVALID!");
96 PX_CHECK_AND_RETURN(mIds.find(id), "PxCollection::removeId called with PxSerialObjectId not contained in the collection!");
97 const IdToObjectMap::Entry* e = mIds.find(id);
98 if(e)
99 {
100 mObjects[e->second] = PX_SERIAL_OBJECT_ID_INVALID;
101 mIds.erase(id);
102 }
103}
104
105PxBase* Collection::find(PxSerialObjectId id) const
106{

Callers

nothing calls this directly

Calls 2

findMethod · 0.45
eraseMethod · 0.45

Tested by

no test coverage detected