#include "Setup.h"
#include <list>
#include <string>
#include <string.h>
#include "Types.h"
#include "Locks.h"
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 |
#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.