Static Public Member Functions | List of all members
Assert Class Reference

An assertion class for development purposes. More...

#include <Assert.hpp>

Static Public Member Functions

template<typename StringFunctionT >
static void assertion (bool test, StringFunctionT function)
 If the bug test assertion fails, abort after logging the message supplied by the function. More...
 
static void assertion (bool test, const char *fatalMessage)
 If the bug test assertion fails, abort after logging the message. More...
 
static void assertion (bool test)
 Abort if the bug test fails. More...
 
template<typename TestFunctionT , typename StringFunctionT >
static void assertion (TestFunctionT test, StringFunctionT function)
 If the bug test assertion predicate function fails, abort after logging the message supplied by the function. More...
 
template<typename TestFunctionT >
static void assertion (TestFunctionT test, const char *fatalMessage)
 If the bug test assertion predicate function fails, abort after logging the message. More...
 
template<typename TestFunctionT >
static void assertion (TestFunctionT test)
 Abort if the bug test assertion predicate function fails. More...
 
static void fail (const char *fatalMessage)
 Abort after logging the message. More...
 

Detailed Description

An assertion class for development purposes.

Member Function Documentation

◆ assertion() [1/6]

static void assertion ( bool  test,
StringFunctionT  function 
)
inlinestatic

If the bug test assertion fails, abort after logging the message supplied by the function.

◆ assertion() [2/6]

static void assertion ( bool  test,
const char *  fatalMessage 
)
inlinestatic

If the bug test assertion fails, abort after logging the message.

◆ assertion() [3/6]

static void assertion ( bool  test)
inlinestatic

Abort if the bug test fails.

◆ assertion() [4/6]

static void assertion ( TestFunctionT  test,
StringFunctionT  function 
)
inlinestatic

If the bug test assertion predicate function fails, abort after logging the message supplied by the function.

◆ assertion() [5/6]

static void assertion ( TestFunctionT  test,
const char *  fatalMessage 
)
inlinestatic

If the bug test assertion predicate function fails, abort after logging the message.

◆ assertion() [6/6]

static void assertion ( TestFunctionT  test)
inlinestatic

Abort if the bug test assertion predicate function fails.

◆ fail()

static void fail ( const char *  fatalMessage)
inlinestatic

Abort after logging the message.


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