__debug_new_counter Class Reference

Counter class for on-exit leakage check. More...

#include <debug_new.h>

Collaboration diagram for __debug_new_counter:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 __debug_new_counter ()
 Constructor to increment the count.
 ~__debug_new_counter ()
 Destructor to decrement the count.

Detailed Description

Counter class for on-exit leakage check.

This technique is learnt from The C++ Programming Language by Bjarne Stroustup.


Constructor & Destructor Documentation

__debug_new_counter::__debug_new_counter (  ) 

Constructor to increment the count.

__debug_new_counter::~__debug_new_counter (  ) 

Destructor to decrement the count.

When the count is zero, check_leaks will be called.


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