Public Member Functions | Static Public Member Functions

xl7::runtime::Diagnostics Class Reference

#include <Diagnostics.h>

List of all members.

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 Diagnosticsdef ()

Constructor & Destructor Documentation

xl7::runtime::Diagnostics::Diagnostics ( void   ) 

Default constructor.

xl7::runtime::Diagnostics::~Diagnostics ( void   ) 

Destructor.


Member Function Documentation

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.


The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines