30 void clear() { pointer=0; size=0; file=0; line=0; }
42 int size() {
return allocationList_.size(); }
56 void start(
bool checkDelete );
71 std::map< void *, DebugAllocation*> allocationList_;
78 friend void*
debug_malloc(
size_t size,
const char* file,
const int line);
79 friend void debug_free (
void* p,
const char* file,
const int line);
void clear()
Definition: debug_allocs.h:30
This structure is used to 'remember' what is allocated at which place.
Definition: debug_allocs.h:22
void debug_free(void *p, const char *file, const int line)
frees the given pointer
Definition: debug_new.cpp:54
int size()
Definition: debug_allocs.h:42
int line
Definition: debug_allocs.h:27
This class is used to remember all memory leakds.
Definition: debug_allocs.h:34
Copyright 2011-2013 - Reliable Bits Software by Blommers IT.
Definition: commentcommand.cpp:22
std::size_t size
Definition: debug_allocs.h:25
void * debug_malloc(size_t size, const char *file, const int line)
Logs a malloc operation.
Definition: debug_new.cpp:25
#define add(key, value)
Definition: factorykeymap.cpp:15
bool isRunning()
Definition: debug_allocs.h:43
void pause(bool val)
Definition: debug_allocs.h:45
void * pointer
Definition: debug_allocs.h:24
char * file
Definition: debug_allocs.h:26