#include <Diagnostics.h>
Public Member Functions | |
| Diagnostics (void) | |
| ~Diagnostics (void) | |
| unsigned | GetFailedPointerChecks () const |
| bool | CheckPointer (const void *ptr) |
| void | Log () const |
| void | Reset () |
Static Public Member Functions | |
| static Diagnostics & | def () |
| xl7::runtime::Diagnostics::Diagnostics | ( | void | ) |
Default constructor.
| xl7::runtime::Diagnostics::~Diagnostics | ( | void | ) |
Destructor.
| bool xl7::runtime::Diagnostics::CheckPointer | ( | const void * | ptr | ) | [inline] |
Checks whether the given object is NULL. The function fires a Null-Pointer-Message to the standard logger (or given logger, if specified) and returns false, if the given object is NULL. The function returns true, if the given object is not NULL.
| static Diagnostics& xl7::runtime::Diagnostics::def | ( | ) | [inline, static] |
Returns the default diagnostics object.
| unsigned xl7::runtime::Diagnostics::GetFailedPointerChecks | ( | ) | const [inline] |
Returns the number of negative null-pointer checks.
| void xl7::runtime::Diagnostics::Log | ( | ) | const |
Prints out the internal statistics.
| void xl7::runtime::Diagnostics::Reset | ( | ) |
Resets the internal statistics.
1.7.1