#include <KeosMemoryManager.h>
Public Member Functions | |
| void * | Allocate (size_t nSize, const CFile &File, int nLine, bool bArray) |
| Add an allocation memory. | |
| void | Free (void *pPtr, bool bArray) |
| Remove an allocation memory. | |
| void | NextDelete (const CFile &File, int nLine) |
| Back up the information about the current deallocation. | |
| ~CMemoryManager () | |
| Destructor. | |
Static Public Member Functions | |
| static CMemoryManager & | Instance () |
| Return the class instance. | |
Classes | |
| struct | TBlock |
Definition at line 63 of file KeosMemoryManager.h.
| Keos::CMemoryManager::~CMemoryManager | ( | ) |
| CMemoryManager & Keos::CMemoryManager::Instance | ( | ) | [static] |
Return the class instance.
Definition at line 99 of file KeosMemoryManager.cpp.
| void * Keos::CMemoryManager::Allocate | ( | size_t | nSize, | |
| const CFile & | File, | |||
| int | nLine, | |||
| bool | bArray | |||
| ) |
Add an allocation memory.
| nSize | Allocated size. | |
| File | File containing the allowance. | |
| nLine | Line of the allowance. | |
| bArray | True if it is an allowance of array. |
Definition at line 133 of file KeosMemoryManager.cpp.
| void Keos::CMemoryManager::Free | ( | void * | pPtr, | |
| bool | bArray | |||
| ) |
Remove an allocation memory.
| pPtr | Address of the memory deallocated. | |
| bArray | True if it is an deallocation of array. |
Definition at line 155 of file KeosMemoryManager.cpp.
| void Keos::CMemoryManager::NextDelete | ( | const CFile & | File, | |
| int | nLine | |||
| ) |
Back up the information about the current deallocation.
| File | File containing the deallocation. | |
| nLine | Line of the deallocation. |
Definition at line 188 of file KeosMemoryManager.cpp.
1.5.1-p1