#include "TA/Common/MemoryMgr.h"
TA::MemoryMgr provides the ability to override calls to new and delete made by the True Axis Physics SDK. The interface for this is provided through the functions: TA::MemoryMgr::SetAlloc, TA::MemoryMgr::SetFree, TA::MemoryMgr::SetDbgAlloc and TA::MemoryMgr::SetDbgFree. Memory is allocated through the debug functions when using a debug build of the library.
Public Types | |
typedef void *(TAC_CALL * | FnAllocCallBack )(unsigned int nSize, unsigned int nAlignment) |
typedef void(TAC_CALL * | FnFreeCallBack )(void *pData) |
typedef void *(TAC_CALL * | FnDbgAllocCallBack )(unsigned int nSize, unsigned int nAlignment, const char *szFileName, int nLine) |
typedef void(TAC_CALL * | FnDbgFreeCallBack )(void *pData, const char *szFileName, int nLine) |
Static Public Member Functions | |
static bool TAC_CALL | SetAlloc (FnAllocCallBack pAllocCallBack) |
static bool TAC_CALL | SetFree (FnFreeCallBack pFreeCallBack) |
static bool TAC_CALL | SetDbgAlloc (FnDbgAllocCallBack pDbgAllocCallBack) |
static bool TAC_CALL | SetDbgFree (FnDbgFreeCallBack pDbgFreeCallBack) |
static void *TAC_CALL | DbgAlloc (unsigned int nSize, unsigned int nAlignment, const char *szFileName, int nLine) |
static void TAC_CALL | DbgFree (void *pPtr, const char *szFileName, int nLine) |
static void *TAC_CALL | Alloc (unsigned int nSize, unsigned int nAlignment) |
static void TAC_CALL | Free (void *pPtr) |
static int TAC_CALL | GetNumAllocationsUnFreed () |