SUMO - Simulation of Urban MObility
|
#include <debug_new.h>
Public Member Functions | |
__debug_new_recorder (const char *file, int line) | |
template<class _Tp > | |
_Tp * | operator->* (_Tp *pointer) |
Private Member Functions | |
__debug_new_recorder (const __debug_new_recorder &) | |
void | _M_process (void *pointer) |
__debug_new_recorder & | operator= (const __debug_new_recorder &) |
Private Attributes | |
const char * | _M_file |
const int | _M_line |
Recorder class to remember the call context.
The idea comes from Greg Herlihy's post in comp.lang.c++.moderated.
Definition at line 140 of file debug_new.h.
|
inline |
Constructor to remember the call context. The information will be used in __debug_new_recorder::operator->*.
Definition at line 150 of file debug_new.h.
|
private |
|
private |
Referenced by operator->*().
|
inline |
Operator to write the context information to memory. operator->*
is chosen because it has the right precedence, it is rarely used, and it looks good: so people can tell the special usage more quickly.
Definition at line 158 of file debug_new.h.
References _M_process().
|
private |
|
private |
Definition at line 142 of file debug_new.h.
|
private |
Definition at line 143 of file debug_new.h.