|
CookMem 1.4.0
A C++ memory context / allocator
|
#include <logger.h>
Public Member Functions | |
| NoActionMemLogger () | |
| void | logGetSegment (void *, std::size_t) |
| void | logFreeSegment (void *, std::size_t) |
| void | logTrimEmptySegments () |
| void | logAllocation (void *, std::size_t, MemAllocType_et) |
| void | logReallocation (void *, std::size_t, std::size_t) |
| void | logDeallocation (void *, std::size_t) |
| void | logError (void *, MemError_et error, const char *file=__FILE__, int line=__LINE__) |
A very simple MemLogger that does mostly nothing.
This class implements the interface of MemLogger without explicitly inheriting from it. This is to avoid the overhead of virtual function calls and allows inlining of the functions.
|
inline |
Constructor.
|
inline |
Does nothing. See MemLogger::logAllocation().
Does nothing. See MemLogger::logDeallocation().
|
inline |
Report a memory error by throwing an exception.
| error | the type of the error encountered. |
| file | the source file where the error was detected. |
| line | the line number where the error was detected. |
| Exception | always. |
Does nothing. See MemLogger::logFreeSegment().
Does nothing. See MemLogger::logGetSegment().
Does nothing. See MemLogger::logReallocation().
|
inline |
Does nothing. See MemLogger::logTrimEmptySegments().