a2dMemManager Class Reference

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

#include <a2dmemmgr.h>

Collaboration diagram for a2dMemManager:

Collaboration graph
[legend]

List of all members.

Public Member Functions

 a2dMemManager (const wxChar *mgrname)
 contructor of memory manager
 ~a2dMemManager ()
 destructor of memory manager
void * Allocate (size_t bytes)
 function for allocating memory block by size bytes
void Deallocate (void *space, size_t bytes)
 function for adding memory block by size bytes to list of freed memory blocks

Classes

struct  a2dFreeList
 a 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 -- Tue Aug 31 18:30:56 2010 -- 31 Aug 2010 -- 1.5.5 -- wxArt2D -- . -- Main Page Reference Documentation