The StackAlloc class provides some fast stack-based memory allocator (LIFO last-in first-out). More...
#include <btStackAlloc.h>
Public Member Functions | |
| unsigned char * | allocate (unsigned int size) |
| SIMD_FORCE_INLINE btBlock * | beginBlock () |
| btStackAlloc (unsigned int size) | |
| void | create (unsigned int size) |
| void | destroy () |
| SIMD_FORCE_INLINE void | endBlock (btBlock *block) |
| int | getAvailableMemory () const |
| ~btStackAlloc () | |
Private Member Functions | |
| void | ctor () |
Private Attributes | |
| btBlock * | current |
| unsigned char * | data |
| bool | ischild |
| unsigned int | totalsize |
| unsigned int | usedsize |
The StackAlloc class provides some fast stack-based memory allocator (LIFO last-in first-out).
Definition at line 34 of file btStackAlloc.h.
| btStackAlloc::btStackAlloc | ( | unsigned int | size | ) | [inline] |
Definition at line 38 of file btStackAlloc.h.
| btStackAlloc::~btStackAlloc | ( | ) | [inline] |
Definition at line 39 of file btStackAlloc.h.
| unsigned char* btStackAlloc::allocate | ( | unsigned int | size | ) | [inline] |
Definition at line 68 of file btStackAlloc.h.
| SIMD_FORCE_INLINE btBlock* btStackAlloc::beginBlock | ( | ) | [inline] |
Definition at line 81 of file btStackAlloc.h.
| void btStackAlloc::create | ( | unsigned int | size | ) | [inline] |
Definition at line 41 of file btStackAlloc.h.
| void btStackAlloc::ctor | ( | ) | [inline, private] |
Definition at line 101 of file btStackAlloc.h.
| void btStackAlloc::destroy | ( | ) | [inline] |
Definition at line 47 of file btStackAlloc.h.
| SIMD_FORCE_INLINE void btStackAlloc::endBlock | ( | btBlock * | block | ) | [inline] |
Definition at line 89 of file btStackAlloc.h.
| int btStackAlloc::getAvailableMemory | ( | ) | const [inline] |
Definition at line 63 of file btStackAlloc.h.
btBlock* btStackAlloc::current [private] |
Definition at line 112 of file btStackAlloc.h.
unsigned char* btStackAlloc::data [private] |
Definition at line 109 of file btStackAlloc.h.
bool btStackAlloc::ischild [private] |
Definition at line 113 of file btStackAlloc.h.
unsigned int btStackAlloc::totalsize [private] |
Definition at line 110 of file btStackAlloc.h.
unsigned int btStackAlloc::usedsize [private] |
Definition at line 111 of file btStackAlloc.h.