Generic Pool class.
More...
#include <btGenericPoolAllocator.h>
Generic Pool class.
Definition at line 33 of file btGenericPoolAllocator.h.
◆ btGenericMemoryPool()
btGenericMemoryPool::btGenericMemoryPool |
( |
size_t |
element_size, |
|
|
size_t |
element_count |
|
) |
| |
|
inline |
◆ ~btGenericMemoryPool()
btGenericMemoryPool::~btGenericMemoryPool |
( |
| ) |
|
|
inline |
◆ allocate()
void * btGenericMemoryPool::allocate |
( |
size_t |
size_bytes | ) |
|
◆ allocate_from_free_nodes()
size_t btGenericMemoryPool::allocate_from_free_nodes |
( |
size_t |
num_elements | ) |
|
|
protected |
◆ allocate_from_pool()
size_t btGenericMemoryPool::allocate_from_pool |
( |
size_t |
num_elements | ) |
|
|
protected |
◆ end_pool()
void btGenericMemoryPool::end_pool |
( |
| ) |
|
◆ freeMemory()
bool btGenericMemoryPool::freeMemory |
( |
void * |
pointer | ) |
|
◆ gem_element_size()
size_t btGenericMemoryPool::gem_element_size |
( |
| ) |
|
|
inline |
◆ get_allocated_count()
size_t btGenericMemoryPool::get_allocated_count |
( |
| ) |
|
|
inline |
◆ get_element_data()
void * btGenericMemoryPool::get_element_data |
( |
size_t |
element_index | ) |
|
|
inline |
◆ get_free_positions_count()
size_t btGenericMemoryPool::get_free_positions_count |
( |
| ) |
|
|
inline |
◆ get_max_element_count()
size_t btGenericMemoryPool::get_max_element_count |
( |
| ) |
|
|
inline |
◆ get_pool_capacity()
size_t btGenericMemoryPool::get_pool_capacity |
( |
| ) |
|
|
inline |
◆ init_pool()
void btGenericMemoryPool::init_pool |
( |
size_t |
element_size, |
|
|
size_t |
element_count |
|
) |
| |
◆ m_allocated_count
size_t btGenericMemoryPool::m_allocated_count |
◆ m_allocated_sizes
size_t* btGenericMemoryPool::m_allocated_sizes |
◆ m_element_size
size_t btGenericMemoryPool::m_element_size |
|
protected |
◆ m_free_nodes
size_t* btGenericMemoryPool::m_free_nodes |
◆ m_free_nodes_count
size_t btGenericMemoryPool::m_free_nodes_count |
◆ m_max_element_count
size_t btGenericMemoryPool::m_max_element_count |
|
protected |
◆ m_pool
unsigned char* btGenericMemoryPool::m_pool |
The documentation for this class was generated from the following files: