RavEngine
Loading...
Searching...
No Matches
physx::Cm::PoolList< T, ArgumentType > Class Template Reference

#include <CmPool.h>

Inheritance diagram for physx::Cm::PoolList< T, ArgumentType >:
[legend]
Collaboration diagram for physx::Cm::PoolList< T, ArgumentType >:
[legend]

Public Member Functions

PX_INLINE PoolList (const Alloc &alloc, ArgumentType *argument, PxU32 eltsPerSlab)
 
PX_INLINE void destroy ()
 
PxU32 preallocate (const PxU32 nbRequired, T **elements)
 
PX_INLINE T * get ()
 
PX_INLINE void put (T *element)
 
PX_FORCE_INLINE T * findByIndex (PxU32 index) const
 
PX_FORCE_INLINE T * findByIndexFast (PxU32 index) const
 
bool extend ()
 
PX_INLINE PxU32 getMaxUsedIndex () const
 
PX_INLINE PxBitMap::Iterator getIterator () const
 
- Public Member Functions inherited from physx::PxReflectionAllocator< T >
 PxReflectionAllocator (const PxEMPTY)
 
 PxReflectionAllocator (const char *=0)
 
 PxReflectionAllocator (const PxReflectionAllocator &)
 
PX_FORCE_INLINE void * allocate (size_t size, const char *filename, int line)
 
PX_FORCE_INLINE void deallocate (void *ptr)
 

Detailed Description

template<class T, class ArgumentType>
class physx::Cm::PoolList< T, ArgumentType >

Allocator for pools of data structures Also decodes indices (which can be computed from handles) into objects. To make this faster, the EltsPerSlab must be a power of two


The documentation for this class was generated from the following file: