walberla::Abort Class Reference

#include <Abort.h>

+ Inheritance diagram for walberla::Abort:

Public Types

using AbortFunction = std::function< void(const std::string &, const std::string &, const int, bool)>
 

Public Member Functions

void resetAbortFunction (const AbortFunction &function=AbortFunction())
 
void abort (const std::string &logMessage, const std::string &callerPath, const int line)
 
void abortNoDebugInfo (const std::string &logMessage, const std::string &callerPath, const int line)
 

Static Public Member Functions

static void defaultAbort (const std::string &message, const std::string &callerPath, const int line, bool withDebugInfo)
 
static void exceptionAbort (const std::string &message, const std::string &callerPath, const int line, bool withDebugInfo)
 

Private Member Functions

 Abort ()=default
 

Private Attributes

 WALBERLA_BEFRIEND_SINGLETON
 
AbortFunction abortFunction_
 

Member Typedef Documentation

◆ AbortFunction

using walberla::Abort::AbortFunction = std::function<void (const std::string &, const std::string &, const int, bool)>

Constructor & Destructor Documentation

◆ Abort()

walberla::Abort::Abort ( )
privatedefault

Member Function Documentation

◆ abort()

void walberla::Abort::abort ( const std::string &  logMessage,
const std::string &  callerPath,
const int  line 
)

◆ abortNoDebugInfo()

void walberla::Abort::abortNoDebugInfo ( const std::string &  logMessage,
const std::string &  callerPath,
const int  line 
)

◆ defaultAbort()

void walberla::Abort::defaultAbort ( const std::string &  message,
const std::string &  callerPath,
const int  line,
bool  withDebugInfo 
)
static

◆ exceptionAbort()

void walberla::Abort::exceptionAbort ( const std::string &  message,
const std::string &  callerPath,
const int  line,
bool  withDebugInfo 
)
static

◆ resetAbortFunction()

void walberla::Abort::resetAbortFunction ( const AbortFunction function = AbortFunction())
inline

Member Data Documentation

◆ abortFunction_

AbortFunction walberla::Abort::abortFunction_
private

◆ WALBERLA_BEFRIEND_SINGLETON

walberla::Abort::WALBERLA_BEFRIEND_SINGLETON
private

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