GEOSX
Classes | Namespaces | Functions
system.hpp File Reference

Contains functions that interact with the system or runtime environment. More...

#include <string>
#include <typeinfo>
#include <functional>

Go to the source code of this file.

Classes

class  LvArray::system::FloatingPointExceptionGuard
 Changes the floating point environment and reverts it when destoyed. More...
 

Namespaces

 LvArray
 The top level namespace.
 
 LvArray::system
 Contains functions that interact with the system or runtime environment.
 

Functions

std::string LvArray::system::stackTrace (bool const lineInfo)
 Return a demangled stack trace of the last 25 frames. More...
 
std::string LvArray::system::demangle (char const *const name)
 
template<class T >
std::string LvArray::system::demangleType ()
 
template<class T >
std::string LvArray::system::demangleType (T const &)
 
void LvArray::system::setErrorHandler (std::function< void() > const &handler)
 Set the error handler called by LVARRAY_ERROR and others. More...
 
void LvArray::system::callErrorHandler ()
 Call the error handler, by default this is std::abort.
 
void LvArray::system::stackTraceHandler (int const sig, bool const exit)
 Print signal information and a stack trace to standard out, optionally aborting. More...
 
void LvArray::system::setSignalHandling (void(*handler)(int))
 Set the signal handler for common signals. More...
 
void LvArray::system::resetSignalHandling ()
 Rest the signal handling back to the original state.
 
int LvArray::system::getDefaultFloatingPointExceptions ()
 Get the default set of exceptions to check. More...
 
int LvArray::system::enableFloatingPointExceptions (int const exceptions=getDefaultFloatingPointExceptions())
 A wrapper around feenableexcept that work on OSX. More...
 
int LvArray::system::disableFloatingPointExceptions (int const exceptions=getDefaultFloatingPointExceptions())
 A wrapper around fedisableexcept that work on OSX. More...
 
void LvArray::system::setFPE ()
 Sets the floating point environment. More...
 
std::string LvArray::system::calculateSize (size_t const bytes)
 

Detailed Description

Contains functions that interact with the system or runtime environment.

Definition in file system.hpp.