#include <memorypool.h>
Public Member Functions | |
| void | deleteChunk (T *ptr) |
Public Member Functions inherited from Common::MemoryPool | |
| MemoryPool (size_t chunkSize) | |
| void * | allocChunk () |
| void | freeChunk (void *ptr) |
| void | freeUnusedPages () |
| size_t | getChunkSize () const |
Additional Inherited Members | |
Protected Member Functions inherited from Common::MemoryPool | |
| MemoryPool (const MemoryPool &) | |
| MemoryPool & | operator= (const MemoryPool &) |
| void | allocPage () |
| void | addPageToPool (const Page &page) |
| bool | isPointerInPage (void *ptr, const Page &page) |
Protected Attributes inherited from Common::MemoryPool | |
| const size_t | _chunkSize |
| Array< Page > | _pages |
| void * | _next |
| size_t | _chunksPerPage |
A memory pool for C++ objects.
|
inline |
Return the memory chunk used as storage for the given object back to the pool, after calling its destructor.