#include <map>
#include <sstream>
Go to the source code of this file.
◆ new
◆ mleak_log()
Definition at line 85 of file mleak.h.
85 {
87}
TH1X EXPRT * h1_book(const char *name, const char *title, int bins, double min, double max)
◆ mleak_print()
Definition at line 73 of file mleak.h.
73 {
75 std::cout << "Leak list is empty." << std::endl;
76 else
77 std::cout << "Leak list:" << std::endl;
78
79
81 std::cout <<
e.second << std::endl;
82 }
83}
std::map< void *, std::string > _mleak_list
◆ mleak_reset()
◆ operator delete()
Definition at line 53 of file mleak.h.
53 {
55 std::cout <<
"Deleted " << std::hex <<
pfs << std::dec << std::endl;
56
57
60
62 return;
63}
◆ operator delete[]()
◆ operator new()
Definition at line 33 of file mleak.h.
33 {
36 std::cerr << "No heap to allocate" << std::endl;
37 exit(-1);
38 }
39 std::stringstream s;
40 s << std::hex <<
pfs << std::dec <<
" at " <<
file <<
":" << line <<
" size " << size;
42
44 std::cout << "Allocated " << s.str() << std::endl;
45
47}
◆ operator new[]()
Definition at line 49 of file mleak.h.
49 {
50 return operator new(size,
file, line);
51}
◆ _mleak_list
std::map<void *,std::string> _mleak_list |
◆ _mleak_log