ucommon
|
Pager pool base class for managed memory pools. More...
#include <memory.h>
Public Member Functions | |
void | put (PagerObject *object) |
Return a pager object back to our free list. | |
![]() | |
void * | alloc (size_t size) |
Convenience function. | |
char * | dup (const char *string) |
Duplicate NULL terminated string into allocated memory. | |
void * | dup (void *memory, size_t size) |
Duplicate existing memory block into allocated memory. | |
void * | zalloc (size_t size) |
Allocate memory from the pager heap. |
Protected Member Functions | |
PagerObject * | get (size_t size) |
![]() | |
virtual void * | _alloc (size_t size)=0 |
Protocol to allocate memory from the pager heap. |
Pager pool base class for managed memory pools.
This is a helper base class for the pager template and generally is not used by itself. If different type pools are intended to use a common memory pager then you will need to mixin a memory protocol object that performs redirection such as the MemoryRedirect class.
void ucommon::PagerPool::put | ( | PagerObject * | object | ) |
Return a pager object back to our free list.
object | to return to pool. |