BitMagic-C++
|
Pool of pointers to buffer cyclic allocations. More...
#include <bmalloc.h>
Public Types | |
enum | params { n_pool_max_size = BM_DEFAULT_POOL_SIZE } |
Public Member Functions | |
pointer_pool_array () | |
pointer_pool_array (const pointer_pool_array &)=delete | |
pointer_pool_array & | operator= (const pointer_pool_array &)=delete |
~pointer_pool_array () | |
unsigned | push (void *ptr) |
Push pointer to the pool (if it is not full) More... | |
void * | pop () |
Get a pointer if there are any vacant. More... | |
|
inline |
Definition at line 150 of file bmalloc.h.
References n_pool_max_size.
|
delete |
|
inline |
|
delete |
|
inline |
Get a pointer if there are any vacant.
Definition at line 177 of file bmalloc.h.
Referenced by bm::alloc_pool< BA, PA >::alloc_bit_block(), and bm::alloc_pool< BA, PA >::free_pools().
|
inline |
Push pointer to the pool (if it is not full)
Definition at line 167 of file bmalloc.h.
References n_pool_max_size.
Referenced by bm::alloc_pool< BA, PA >::free_bit_block().