class LeakChecker (Return to index)

utility for counting undestroyed instances of a class.

Type:
    Instantiable

Derived Classes

Include file:

    OverlayUnidraw/leakchecker.h

Description:

To use create a static instance initialized with the class name, i.e. 'static LeakChecker checker("OverlayRaster")', then add a 'checker.create()' call to each constructor and a 'checker.destroy()' call to each destructor. When the program is terminated the static instance of the leak checker will be destructed, and a count of un-destructed (alive) instances will be printed to stderr.

Public:



(more documentation)