nvwa::debug_new_counter Class Reference

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

#include <debug_new.h>

Collaboration diagram for nvwa::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

nvwa::debug_new_counter::debug_new_counter (  ) 

Constructor to increment the count.

nvwa::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:
 All Classes Namespaces Files Functions Variables Typedefs Friends Defines

Generated by  doxygen 1.6.2