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

SdsIDChecker Class Reference

#include <sds.h>

List of all members.


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.


Public Methods

 SdsIDChecker (int line, const char *file, const char *function)
 Construct an SdsChecker object.

virtual ~SdsIDChecker ()
 SdsCheck destructor.


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.
Remarks:
Only available if the marcro DRAMA_ALLOW_CPP_STDLIB is defined.
Parameters:
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.

virtual SdsIDChecker::~SdsIDChecker   [inline, virtual]
 

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@aaoepp.aao.gov.au 

Generated on Tue Nov 3 09:09:56 2009 for AAO DRAMA C++ Interfaces by doxygen 1.2.18