Classes | Namespaces | Functions
oomph_definitions.h File Reference

Go to the source code of this file.

Classes

class  oomph::OomphLibQuietException
 ===================================================================== A class for handling oomph-lib run-time exceptions quietly. More...
 
class  oomph::OomphLibException
 ===================================================================== A Base class for oomph-lib run-time exception (error and warning) handling. More...
 
class  oomph::OomphLibError
 An OomphLibError object which should be thrown when an run-time error is encountered. The error stream and stream width can be specified. The default is cerr with a width of 70 characters. More...
 
class  oomph::OomphLibWarning
 An OomphLibWarning object which should be created as a temporary object to issue a warning. The warning stream and stream width can be specified. The default is cerr with a width of 70 characters. More...
 
class  oomph::Nullstream
 A small nullstream class that throws away everything sent to it. More...
 
class  oomph::OutputModifier
 A base class that contains a single virtual member function: The () operator that may be used to modify the output in. More...
 
class  oomph::OomphInfo
 This class is a wrapper to a stream and an output modifier that is used to control the "info" output from OomphLib. Its instationiation can be used like std::cout. More...
 

Namespaces

namespace  oomph
 DRAIG: Change all instances of (SPATIAL_DIM) to (DIM-1).
 
namespace  oomph::Global_timings
 ===================================================================== Namespace to control level of comprehensive timings
 
namespace  oomph::TerminateHelper
 Helper namespace for set_terminate function – used to spawn.
 
namespace  oomph::Global_output_stream
 Namespace containing an output stream that can be used for debugging. Use at your own risk – global data is evil!
 
namespace  oomph::Global_unsigned
 Namespace containing a number that can be used to annotate things for debugging. Use at your own risk – global data is evil!
 
namespace  oomph::Global_string_for_annotation
 Namespace containing a vector of strings that can be used to to store global output modifiers. This is global data and you use it at your own risk!
 

Functions

void oomph::TerminateHelper::setup ()
 Setup terminate helper.
 
void oomph::TerminateHelper::suppress_exception_error_messages ()
 Flush string stream of error messages (call when error has been caught)
 
void oomph::TerminateHelper::spawn_errors_from_uncaught_errors ()
 Function to spawn messages from uncaught errors.
 
void oomph::TerminateHelper::clean_up_memory ()
 Clean up function that deletes anything dynamically allocated in this namespace.
 
std::string oomph::Global_string_for_annotation::string (const unsigned &i)
 Return the i-th string or "" if the relevant string hasn't been defined.