|
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) BMNOEXCEPT |
| Push pointer to the pool (if it is not full). | |
| void * | pop () BMNOEXCEPT |
| Get a pointer if there are any vacant. | |
| unsigned | size () const BMNOEXCEPT |
| return stack size | |
|
inline |
Definition at line 162 of file bmalloc.h.
References n_pool_max_size.
Referenced by operator=(), and pointer_pool_array().
|
delete |
References pointer_pool_array().
|
inline |
|
delete |
References pointer_pool_array().
|
inline |
Get a pointer if there are any vacant.
Definition at line 189 of file bmalloc.h.
References BMNOEXCEPT.
|
inline |
Push pointer to the pool (if it is not full).
Definition at line 179 of file bmalloc.h.
References BMNOEXCEPT, and n_pool_max_size.
|
inline |