|
RavEngine
|
a container class used in the CCD that minimizes frequency of hitting the allocator. More...
#include <PxsCCD.h>
Classes | |
| struct | Block |
| A block of data. More... | |
| struct | BlockInfo |
| A header for a block of data. More... | |
Public Member Functions | |
| PxsCCDBlockArray () | |
| Constructor. | |
| ~PxsCCDBlockArray () | |
| Destructor. | |
| void | clear () |
| Clears this block array. | |
| void | clear_NoDelete () |
| Clears this block array but does not release the memory. | |
| T & | pushBack () |
| Push a new element onto the back of the block array. | |
| T & | pushBack (T &data) |
| Pushes a new element onto the back of this array, intitializing it to match the data. | |
| void | popBack () |
| Pops the last element from the list. | |
| PxU32 | size () const |
| Returns the current size of the array. | |
| T & | operator[] (PxU32 index) const |
| Returns the element at a given index in the array. | |
Public Attributes | |
| PxArray< BlockInfo > | blocks |
| PxU32 | currentBlock |
| The current block. | |
a container class used in the CCD that minimizes frequency of hitting the allocator.
This class stores a set of blocks of memory. It is effectively an array that resizes more efficiently because it doesn't need to reallocate an entire buffer and copy data.
|
inline |
Clears this block array.
|
inline |
Returns the element at a given index in the array.
| [in] | index | The index of the element in the array |
|
inline |
Push a new element onto the back of the block array.
|
inline |
Pushes a new element onto the back of this array, intitializing it to match the data.
| data | The data to initialize the new element to |
|
inline |
Returns the current size of the array.