MCPcopy Create free account
hub / github.com/NVIDIAGameWorks/PhysX / get

Function get

physx/source/common/src/CmPool.h:195–202  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

193 // TODO: would be nice to add templated construct/destroy methods like ObjectPool
194
195 PX_INLINE T* get()
196 {
197 if(mFreeCount == 0 && !extend())
198 return 0;
199 T* element = mFreeList[--mFreeCount];
200 mUseBitmap.set(element->getIndex());
201 return element;
202 }
203
204 PX_INLINE void put(T* element)
205 {

Callers 2

hasResourceMethod · 0.85
Vec3Class · 0.85

Calls 3

extendFunction · 0.85
setMethod · 0.45
getIndexMethod · 0.45

Tested by

no test coverage detected