AAO DRAMA C++ Interface (Old style)
DRAMA C++, Depreciated, don't use for new code
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, bool listChanges=false, bool enable=true)
 Construct an SdsChecker object.
 
virtual ~SdsIDChecker ()
 SdsCheck destructor.
 
void DecrLeakCount ()
 Decrement leak allowance count.
 
int getLeakAllowance ()
 Get leak count.
 
void IncrLeakCount ()
 Increment leak allowance count.
 
void SetLeakCount (int leaksAllowedCount)
 Set leak allowance count.
 

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 constructor was run.

The easiest way to use this via the SDS_CHECK_IDS macro.


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