__debug_new_recorder Class Reference

Recorder class to remember the call context. More...

#include <debug_new.h>

Collaboration diagram for __debug_new_recorder:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 __debug_new_recorder (const char *file, int line)
 Constructor to remember the call context.
template<class _Tp>
_Tp * operator-> * (_Tp *pointer)
 Operator to write the context information to memory.

Detailed Description

Recorder class to remember the call context.

The idea comes from Greg Herlihy's post in comp.lang.c++.moderated.


Constructor & Destructor Documentation

__debug_new_recorder::__debug_new_recorder ( const char *  file,
int  line 
) [inline]

Constructor to remember the call context.

The information will be used in __debug_new_recorder::operator->*.


Member Function Documentation

template<class _Tp>
_Tp* __debug_new_recorder::operator-> * ( _Tp *  pointer  )  [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.


The documentation for this class was generated from the following files:
Generated on Mon Dec 31 15:07:32 2007 for Nvwa by  doxygen 1.5.1