Solver body pool (array) that enforces 128-byte alignment for base address of array.
More...
|
|
typedef PxSolverBody * | Iterator |
| |
|
typedef const PxSolverBody * | ConstIterator |
| |
|
| PxArray (const PxEMPTY v) |
| |
| PX_INLINE | PxArray (const PxAlignedAllocator< 128, PxReflectionAllocator< PxSolverBody > > &alloc=PxAlignedAllocator< 128, PxReflectionAllocator< PxSolverBody > >()) |
| |
| PX_INLINE | PxArray (uint32_t size, const PxSolverBody &a=PxSolverBody(), const PxAlignedAllocator< 128, PxReflectionAllocator< PxSolverBody > > &alloc=PxAlignedAllocator< 128, PxReflectionAllocator< PxSolverBody > >()) |
| |
| PX_INLINE | PxArray (const PxArray< PxSolverBody, A > &other, const PxAlignedAllocator< 128, PxReflectionAllocator< PxSolverBody > > &alloc=PxAlignedAllocator< 128, PxReflectionAllocator< PxSolverBody > >()) |
| |
|
PX_INLINE | PxArray (const PxArray &other, const PxAlignedAllocator< 128, PxReflectionAllocator< PxSolverBody > > &alloc=PxAlignedAllocator< 128, PxReflectionAllocator< PxSolverBody > >()) |
| |
| PX_INLINE | PxArray (const PxSolverBody *first, const PxSolverBody *last, const PxAlignedAllocator< 128, PxReflectionAllocator< PxSolverBody > > &alloc=PxAlignedAllocator< 128, PxReflectionAllocator< PxSolverBody > >()) |
| |
| PX_INLINE | ~PxArray () |
| |
| PX_INLINE PxArray & | operator= (const PxArray< PxSolverBody, A > &rhs) |
| |
|
PX_INLINE PxArray & | operator= (const PxArray &t) |
| |
| PX_FORCE_INLINE const PxSolverBody & | operator[] (uint32_t i) const |
| |
| PX_FORCE_INLINE PxSolverBody & | operator[] (uint32_t i) |
| |
| PX_FORCE_INLINE ConstIterator | begin () const |
| |
|
PX_FORCE_INLINE Iterator | begin () |
| |
| PX_FORCE_INLINE ConstIterator | end () const |
| |
|
PX_FORCE_INLINE Iterator | end () |
| |
| PX_FORCE_INLINE const PxSolverBody & | front () const |
| |
|
PX_FORCE_INLINE PxSolverBody & | front () |
| |
| PX_FORCE_INLINE const PxSolverBody & | back () const |
| |
|
PX_FORCE_INLINE PxSolverBody & | back () |
| |
| PX_FORCE_INLINE uint32_t | size () const |
| |
| PX_INLINE void | clear () |
| |
| PX_FORCE_INLINE bool | empty () const |
| |
| PX_INLINE Iterator | find (const PxSolverBody &a) |
| |
|
PX_INLINE ConstIterator | find (const PxSolverBody &a) const |
| |
| PX_FORCE_INLINE PxSolverBody & | pushBack (const PxSolverBody &a) |
| |
| PX_INLINE PxSolverBody | popBack () |
| |
| PX_INLINE PxSolverBody & | insert () |
| |
| PX_INLINE void | replaceWithLast (uint32_t i) |
| |
|
PX_INLINE void | replaceWithLast (Iterator i) |
| |
| PX_INLINE bool | findAndReplaceWithLast (const PxSolverBody &a) |
| |
| PX_INLINE void | remove (uint32_t i) |
| |
| PX_INLINE void | removeRange (uint32_t begin, uint32_t count) |
| |
| PX_NOINLINE void | resize (const uint32_t size, const PxSolverBody &a=PxSolverBody()) |
| |
|
PX_NOINLINE void | resizeUninitialized (const uint32_t size) |
| |
| PX_INLINE void | shrink () |
| |
| PX_INLINE void | reset () |
| |
| PX_INLINE void | resetOrClear () |
| |
| PX_INLINE void | reserve (const uint32_t capacity) |
| |
| PX_FORCE_INLINE uint32_t | capacity () const |
| |
| PX_FORCE_INLINE void | forceSize_Unsafe (uint32_t size) |
| |
| PX_INLINE void | swap (PxArray< PxSolverBody, PxAlignedAllocator< 128, PxReflectionAllocator< PxSolverBody > > > &other) |
| |
| PX_INLINE void | assign (const PxSolverBody *first, const PxSolverBody *last) |
| |
|
PX_FORCE_INLINE uint32_t | isInUserMemory () const |
| |
|
PX_INLINE PxAlignedAllocator< 128, PxReflectionAllocator< PxSolverBody > > & | getAllocator () |
| | return reference to allocator
|
| |
|
| PxArray (PxSolverBody *memory, uint32_t size, uint32_t capacity, const PxAlignedAllocator< 128, PxReflectionAllocator< PxSolverBody > > &alloc=PxAlignedAllocator< 128, PxReflectionAllocator< PxSolverBody > >()) |
| |
|
PX_NOINLINE void | copy (const PxArray< PxSolverBody, A > &other) |
| |
|
PX_INLINE PxSolverBody * | allocate (uint32_t size) |
| |
|
PX_INLINE void | deallocate (void *mem) |
| |
| PX_NOINLINE PxSolverBody & | growAndPushBack (const PxSolverBody &a) |
| |
| PX_INLINE void | grow (uint32_t capacity) |
| |
| PX_NOINLINE void | recreate (uint32_t capacity) |
| |
|
PX_INLINE uint32_t | capacityIncrement () const |
| |
|
| PxAlignedAllocator (const PxReflectionAllocator< PxSolverBody > &base=PxReflectionAllocator< PxSolverBody >()) |
| |
|
void * | allocate (size_t size, const char *file, int line) |
| |
|
void | deallocate (void *ptr) |
| |
|
| 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) |
| |
|
static PX_INLINE void | copy (PxSolverBody *first, PxSolverBody *last, const PxSolverBody *src) |
| |
|
static PX_INLINE void | create (PxSolverBody *first, PxSolverBody *last, const PxSolverBody &a) |
| |
|
static PX_INLINE void | destroy (PxSolverBody *first, PxSolverBody *last) |
| |
|
PxSolverBody * | mData |
| |
|
uint32_t | mSize |
| |
|
uint32_t | mCapacity |
| |
Solver body pool (array) that enforces 128-byte alignment for base address of array.
- Note
- This reduces cache misses on platforms with 128-byte-size cache lines by aligning the start of the array to the beginning of a cache line.