DRAMA C++ Intro   Class Hierarchy   Alphabetical List of types   List of Classes   File List   Class Member Index   File Members Index   Related Pages  

Public Member Functions | List of all members
SdsIDChecker Class Reference

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...
 

Detailed Description

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.

Constructor & Destructor Documentation

SdsIDChecker::SdsIDChecker ( int  line,
const char *  file,
const char *  function 
)
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

Remarks
Use the SDS_CHECK_IDS marco to invoke this (if only used once in a block.
Only available if the marcro DRAMA_ALLOW_CPP_STDLIB is defined.
Parameters
lineThe line number the object is constructed as. Assign to LINE.
fileThe compilation file the object is constructed in. Assign to FILE.
functionA function/method name to be used in the message.
virtual SdsIDChecker::~SdsIDChecker ( )
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.


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

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 doxygen 1.8.10