|
reSIProcate
SIP stack, Dialog Usage Manager and related libraries
|
A dirt-simple lightweight pool allocator meant for use in short-lifetime objects. More...
#include <DinkyPool.hxx>
Public Member Functions | |
| DinkyPool () | |
| ~DinkyPool () | |
| void * | allocate (size_t size) |
| void | deallocate (void *ptr) |
| size_t | max_size () const |
| size_t | getHeapBytes () const |
| size_t | getPoolBytes () const |
| size_t | getPoolSizeBytes () const |
Public Member Functions inherited from resip::PoolBase | |
| virtual | ~PoolBase () |
A dirt-simple lightweight pool allocator meant for use in short-lifetime objects.
This will pool-allocate at most S bytes, after which no further pool allocation will be performed, and fallback to the system new/delete will be used (deallocating a pool allocated object will not free up room in the pool; the memory will be freed when the DinkyPool goes away).
Definition at line 20 of file DinkyPool.hxx.
|
inline |
Definition at line 23 of file DinkyPool.hxx.
|
inline |
Definition at line 24 of file DinkyPool.hxx.
|
inlinevirtual |
Implements resip::PoolBase.
Definition at line 26 of file DinkyPool.hxx.
|
inlinevirtual |
Implements resip::PoolBase.
Definition at line 38 of file DinkyPool.hxx.
|
inline |
Definition at line 52 of file DinkyPool.hxx.
|
inline |
Definition at line 53 of file DinkyPool.hxx.
|
inline |
Definition at line 54 of file DinkyPool.hxx.
|
inlinevirtual |
Implements resip::PoolBase.
Definition at line 47 of file DinkyPool.hxx.