Nvwa  1.1
Public Member Functions | Static Private Attributes | List of all members
nvwa::debug_new_counter Class Reference

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

#include <debug_new.h>

Public Member Functions

 debug_new_counter ()
 Constructor to increment the count.
 
 ~debug_new_counter ()
 Destructor to decrement the count. More...
 

Static Private Attributes

static int _S_count = 0
 Count of source files that use debug_new.
 

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()

nvwa::debug_new_counter::~debug_new_counter ( )

Destructor to decrement the count.

When the count is zero, nvwa::check_leaks will be called.


The documentation for this class was generated from the following files: