|
wxArt2D
|
Simple Memory manager for some objects which often create and destroy to replace OS-system calls. More...
#include <a2dmemmgr.h>
Public Member Functions | |
| a2dMemManager (const wxChar *mgrname) | |
| contructor of memory manager | |
| ~a2dMemManager () | |
| destructor of memory manager More... | |
| void * | Allocate (size_t bytes) |
| function for allocating memory block by size bytes More... | |
| void | Deallocate (void *space, size_t bytes) |
| function for adding memory block by size bytes to list of freed memory blocks | |
Simple Memory manager for some objects which often create and destroy to replace OS-system calls.
Definition at line 20 of file a2dmemmgr.h.
| a2dMemManager::~a2dMemManager | ( | ) |
destructor of memory manager
Destroing all lists of freed memory blocks which were allocated in Allocate() by OS-system allocation calls
Definition at line 27 of file a2dmemmgr.cpp.
| void * a2dMemManager::Allocate | ( | size_t | bytes | ) |
function for allocating memory block by size bytes
Returns pointer to freed block if exists in lists or calls OS-system function for allocating memory block
Definition at line 47 of file a2dmemmgr.cpp.