COOLFluiD  Release kernel
COOLFluiD is a Collaborative Simulation Environment (CSE) focused on complex MultiPhysics simulations.
Public Member Functions | Static Public Member Functions | Public Attributes | List of all members
AssertionManager Class Reference

Manager of behavior of assertions. More...

#include <Assertions.hpp>

Inherits noncopyable.

Public Member Functions

 AssertionManager ()
 Constructor. More...
 

Static Public Member Functions

static AssertionManagerinstance ()
 Gets the instance of the manager. More...
 
static bool notHandlingAssertions ()
 
static void do_assert (bool condition, const char *cond_str, const char *file, int line, const char *func, const char *desc=0)
 Forward declaration of the function that inplements the always present assert. More...
 
static void do_assert (bool condition, const char *cond_str, const char *file, int line, const char *func, const std::string &desc)
 

Public Attributes

bool DoAssertions
 flag to dynamically turn off assertions More...
 
bool AssertionDumps
 assertions dump backtraces More...
 
bool AssertionThrows
 assertions throw exceptions More...
 

Detailed Description

Manager of behavior of assertions.

Definition at line 26 of file Assertions.hpp.

Constructor & Destructor Documentation

Constructor.

Definition at line 26 of file Assertions.cpp.

Member Function Documentation

void do_assert ( bool  condition,
const char *  cond_str,
const char *  file,
int  line,
const char *  func,
const char *  desc = 0 
)
static

Forward declaration of the function that inplements the always present assert.

Definition at line 41 of file Assertions.cpp.

static void do_assert ( bool  condition,
const char *  cond_str,
const char *  file,
int  line,
const char *  func,
const std::string &  desc 
)
inlinestatic

Definition at line 55 of file Assertions.hpp.

AssertionManager & instance ( )
static

Gets the instance of the manager.

Definition at line 33 of file Assertions.cpp.

static bool notHandlingAssertions ( )
inlinestatic

If AssertionManager is not handling assertions and those are passed to the standard assert function Controlled by the build option CF3_ENABLE_STDASSERT

Definition at line 38 of file Assertions.hpp.

Member Data Documentation

bool AssertionDumps

assertions dump backtraces

Definition at line 65 of file Assertions.hpp.

bool AssertionThrows

assertions throw exceptions

Definition at line 67 of file Assertions.hpp.

bool DoAssertions

flag to dynamically turn off assertions

Definition at line 63 of file Assertions.hpp.


The documentation for this class was generated from the following files:
Send comments to:
COOLFluiD Web Admin