MCPcopy Create free account
hub / github.com/OneLoneCoder/olcPixelGameEngine / relocate

Method relocate

utilities/olcUTIL_QuadTree.h:300–308  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

298 }
299
300 void relocate(typename IQuadtreeContainer::iterator& item, const geom2d::rect<CTYPE>& itemsize)
301 {
302 // Remove pointer to item from whichever container its stored in
303 item->pItem.container->erase(item->pItem.iterator);
304
305 // Update the items pointer by reinsertion into geom2d::rect<CTYPE> tree
306 item->pItem = root.insert(item, itemsize);
307
308 }
309
310 typename IQuadtreeContainer::iterator begin()
311 {

Callers

nothing calls this directly

Calls 1

insertMethod · 0.45

Tested by

no test coverage detected