A class to check for SDS leaks. More...
#include <sds.h>
Public Member Functions | |
SdsIDChecker (int line, const char *file, const char *function) | |
Construct an SdsChecker object. More... | |
virtual | ~SdsIDChecker () |
SdsCheck destructor. More... | |
A class to check for SDS leaks.
Create one of these objects in your and when the destructor is run, it will write a message to stderr if your code has allocated or released a net number of SDS ID's since the contructor was run.
The easiest way to use this via the SDS_CHECK_IDS macro.
|
inline |
Construct an SdsChecker object.
When constructed, this object will run SdsCheckInit() and save the results. When the destructor is run, it will run SdsCheck() and write a mesage to stderr if there was a net change in SDS id's which are allocated since the
line | The line number the object is constructed as. Assign to LINE. |
file | The compilation file the object is constructed in. Assign to FILE. |
function | A function/method name to be used in the message. |
|
inlinevirtual |
SdsCheck destructor.
Will invoke SdsCheck() and output a message to stderr if the net number of SDS ID's outstarnding have changed since the constructor was run.
Click here for the DRAMA home page and here for the AAO home page.
For more information, contact tjf@aao.gov.au Generated on Mon Feb 22 2016 13:58:31 for AAO DRAMA C++ Interfaces by 1.8.10