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 () | |
More... | |
pointer_pool_array (const pointer_pool_array &)=delete | |
pointer_pool_array & | operator= (const pointer_pool_array &)=delete |
~pointer_pool_array () | |
More... | |
unsigned | push (void *ptr) BMNOEXCEPT |
Push pointer to the pool (if it is not full) More... | |
void * | pop () BMNOEXCEPT |
Get a pointer if there are any vacant. More... | |
unsigned | size () const BMNOEXCEPT |
return stack size More... | |
|
inline |
Get a pointer if there are any vacant.
Definition at line 190 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 180 of file bmalloc.h.
References n_pool_max_size.
Referenced by bm::alloc_pool< BA, PA >::free_bit_block().
|
inline |
return stack size
Definition at line 199 of file bmalloc.h.
Referenced by bm::alloc_pool< BA, PA >::free_bit_block(), and bm::alloc_pool< BA, PA >::size().