wxArt2D
Classes | Public Member Functions | List of all members
a2dMemManager Class Reference

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
 

Detailed Description

Simple Memory manager for some objects which often create and destroy to replace OS-system calls.

Definition at line 20 of file a2dmemmgr.h.

Constructor & Destructor Documentation

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.

Member Function Documentation

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.


The documentation for this class was generated from the following files:
a2dMemManager Class Reference -- Sun Oct 12 2014 17:04:43 -- Sun Oct 12 2014 -- 1.8.5 -- wxArt2D -- . -- Main Page Reference Documentation