|
Bullet Collision Detection & Physics Library
|
Generic Allocator with pools. More...
#include <btGenericPoolAllocator.h>


Public Member Functions | |
| size_t | get_pool_capacity () |
| btGenericPoolAllocator (size_t pool_element_size, size_t pool_element_count) | |
| virtual | ~btGenericPoolAllocator () |
| *******************! btGenericPoolAllocator *******************!/// More... | |
| void * | allocate (size_t size_bytes) |
| Allocates memory in pool. More... | |
| bool | freeMemory (void *pointer) |
Public Attributes | |
| btGenericMemoryPool * | m_pools [BT_DEFAULT_MAX_POOLS] |
| size_t | m_pool_count |
Protected Member Functions | |
| btGenericMemoryPool * | push_new_pool () |
| void * | failback_alloc (size_t size_bytes) |
| bool | failback_free (void *pointer) |
Protected Attributes | |
| size_t | m_pool_element_size |
| size_t | m_pool_element_count |
Generic Allocator with pools.
General purpose Allocator which can create Memory Pools dynamiacally as needed.
Definition at line 113 of file btGenericPoolAllocator.h.
|
inline |
Definition at line 138 of file btGenericPoolAllocator.h.
|
virtual |
*******************! btGenericPoolAllocator *******************!///
Definition at line 158 of file btGenericPoolAllocator.cpp.
| void * btGenericPoolAllocator::allocate | ( | size_t | size_bytes | ) |
Allocates memory in pool.
| size_bytes | size in bytes of the buffer |
Definition at line 215 of file btGenericPoolAllocator.cpp.
|
protected |
Definition at line 185 of file btGenericPoolAllocator.cpp.
|
protected |
Definition at line 204 of file btGenericPoolAllocator.cpp.
| bool btGenericPoolAllocator::freeMemory | ( | void * | pointer | ) |
Definition at line 231 of file btGenericPoolAllocator.cpp.
|
inline |
Definition at line 123 of file btGenericPoolAllocator.h.
|
protected |
Definition at line 171 of file btGenericPoolAllocator.cpp.
| size_t btGenericPoolAllocator::m_pool_count |
Definition at line 120 of file btGenericPoolAllocator.h.
|
protected |
Definition at line 117 of file btGenericPoolAllocator.h.
|
protected |
Definition at line 116 of file btGenericPoolAllocator.h.
| btGenericMemoryPool* btGenericPoolAllocator::m_pools[BT_DEFAULT_MAX_POOLS] |
Definition at line 119 of file btGenericPoolAllocator.h.
1.8.12