Memory.h File Reference

Handles memory management and tracking/debugging. More...

#include "Setup.h"
#include <list>
#include <string>
#include <string.h>
#include "Types.h"
#include "Locks.h"

Include dependency graph for Memory.h:

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  MPMAMemoryManager
 Singleton (mpmaMemoryManager). Do not instantiate this yourself. The memory manager. More...
class  AutoDelete< T >
 Automatically free a single object when this loses scope. More...
class  AutoDeleteArray< T >
 Automatically free an array of objects when this loses scope. More...

Defines

#define MEMMAN_TRACING


Detailed Description

Handles memory management and tracking/debugging.


Define Documentation

#define MEMMAN_TRACING

new3(t) - allocates an object of type t new3_array(t,c) - allocates an array of t's, of length c. new3(t(param1,param2,etc)) - allocates a new t using specific constructor parameters

delete3(mem) - frees memory allocated by new3 delete3_array(mem) - frees an array allocated by new3_array

new, delete, malloc, and free must not be mixed with new2 and delete2. if you have a private destructor, you must declare your class as a friend to (global namespace) MPMAMemoryManager.

call AddLeakReportCallback to add a callback to be notified of memory leaks when the framework shuts down.


Generated on Sat Aug 9 15:05:05 2008 for MPMA Framework by  doxygen 1.5.6