BitMagic-C++
|
Allocation pool object. More...
#include <bmalloc.h>
Public Types | |
typedef BA | block_allocator_type |
typedef PA | ptr_allocator_type |
Public Member Functions | |
alloc_pool () | |
~alloc_pool () | |
bm::word_t * | alloc_bit_block () |
void | free_bit_block (bm::word_t *block) |
void | free_pools () |
Protected Attributes | |
pointer_pool_array | block_pool_ |
BA | block_alloc_ |
Allocation pool object.
typedef BA bm::alloc_pool< BA, PA >::block_allocator_type |
typedef PA bm::alloc_pool< BA, PA >::ptr_allocator_type |
|
inline |
|
inline |
Definition at line 213 of file bmalloc.h.
References bm::alloc_pool< BA, PA >::free_pools().
|
inline |
Definition at line 218 of file bmalloc.h.
References bm::alloc_pool< BA, PA >::block_alloc_, bm::alloc_pool< BA, PA >::block_pool_, bm::pointer_pool_array::pop(), and bm::set_block_size.
|
inline |
Definition at line 226 of file bmalloc.h.
References bm::alloc_pool< BA, PA >::block_alloc_, bm::alloc_pool< BA, PA >::block_pool_, BM_ASSERT, IS_VALID_ADDR, bm::pointer_pool_array::push(), and bm::set_block_size.
|
inline |
Definition at line 235 of file bmalloc.h.
References bm::alloc_pool< BA, PA >::block_alloc_, bm::alloc_pool< BA, PA >::block_pool_, bm::pointer_pool_array::pop(), and bm::set_block_size.
Referenced by bm::alloc_pool< BA, PA >::~alloc_pool().
|
protected |
Definition at line 248 of file bmalloc.h.
Referenced by bm::alloc_pool< BA, PA >::alloc_bit_block(), bm::alloc_pool< BA, PA >::free_bit_block(), and bm::alloc_pool< BA, PA >::free_pools().
|
protected |
Definition at line 247 of file bmalloc.h.
Referenced by bm::alloc_pool< BA, PA >::alloc_bit_block(), bm::alloc_pool< BA, PA >::free_bit_block(), and bm::alloc_pool< BA, PA >::free_pools().