ESPResSo
Extensible Simulation Package for Research on Soft Matter Systems
|
#include <RuntimeErrorCollector.hpp>
Public Member Functions | |
RuntimeErrorCollector (boost::mpi::communicator comm) | |
~RuntimeErrorCollector () | |
void | message (RuntimeError message) |
void | message (const RuntimeError &message) |
void | message (RuntimeError::ErrorLevel level, const std::string &msg, const char *function, const char *file, int line) |
void | warning (const std::string &msg, const char *function, const char *file, int line) |
void | warning (const char *msg, const char *function, const char *file, int line) |
void | warning (const std::ostringstream &mstr, const char *function, const char *file, int line) |
void | error (const std::string &msg, const char *function, const char *file, int line) |
void | error (const char *msg, const char *function, const char *file, int line) |
void | error (const std::ostringstream &mstr, const char *function, const char *file, int line) |
int | count () const |
Get the number of all flying messages on all nodes. | |
int | count (RuntimeError::ErrorLevel level) |
Get the number of messages that have at least severity level on this node. | |
void | clear () |
Reset error messages. | |
void | flush () |
Flush error messages to standard error. | |
std::vector< RuntimeError > | gather () |
void | gather_local () |
const boost::mpi::communicator & | comm () const |
Definition at line 33 of file RuntimeErrorCollector.hpp.
|
explicit |
Definition at line 36 of file RuntimeErrorCollector.cpp.
ErrorHandling::RuntimeErrorCollector::~RuntimeErrorCollector | ( | ) |
Definition at line 39 of file RuntimeErrorCollector.cpp.
References flush().
void ErrorHandling::RuntimeErrorCollector::clear | ( | ) |
Reset error messages.
Definition at line 109 of file RuntimeErrorCollector.cpp.
Referenced by flush(), and gather_local().
|
inline |
Definition at line 85 of file RuntimeErrorCollector.hpp.
int ErrorHandling::RuntimeErrorCollector::count | ( | ) | const |
Get the number of all flying messages on all nodes.
Definition at line 98 of file RuntimeErrorCollector.cpp.
int ErrorHandling::RuntimeErrorCollector::count | ( | RuntimeError::ErrorLevel | level | ) |
Get the number of messages that have at least severity level
on this node.
level | Severity filter. |
Definition at line 103 of file RuntimeErrorCollector.cpp.
void ErrorHandling::RuntimeErrorCollector::error | ( | const char * | msg, |
const char * | function, | ||
const char * | file, | ||
int | line | ||
) |
Definition at line 87 of file RuntimeErrorCollector.cpp.
References error().
void ErrorHandling::RuntimeErrorCollector::error | ( | const std::ostringstream & | mstr, |
const char * | function, | ||
const char * | file, | ||
int | line | ||
) |
Definition at line 92 of file RuntimeErrorCollector.cpp.
References error().
void ErrorHandling::RuntimeErrorCollector::error | ( | const std::string & | msg, |
const char * | function, | ||
const char * | file, | ||
int | line | ||
) |
Definition at line 81 of file RuntimeErrorCollector.cpp.
References ErrorHandling::RuntimeError::ERROR.
void ErrorHandling::RuntimeErrorCollector::flush | ( | ) |
Flush error messages to standard error.
Definition at line 111 of file RuntimeErrorCollector.cpp.
References clear().
Referenced by ~RuntimeErrorCollector().
std::vector< RuntimeError > ErrorHandling::RuntimeErrorCollector::gather | ( | ) |
Definition at line 118 of file RuntimeErrorCollector.cpp.
References Utils::Mpi::gather_buffer().
void ErrorHandling::RuntimeErrorCollector::gather_local | ( | ) |
Definition at line 127 of file RuntimeErrorCollector.cpp.
References clear(), and Utils::Mpi::gather_buffer().
void ErrorHandling::RuntimeErrorCollector::message | ( | const RuntimeError & | message | ) |
Definition at line 47 of file RuntimeErrorCollector.cpp.
References message().
void ErrorHandling::RuntimeErrorCollector::message | ( | RuntimeError | message | ) |
Definition at line 51 of file RuntimeErrorCollector.cpp.
References message().
Referenced by message(), message(), and ErrorHandling::RuntimeErrorStream::~RuntimeErrorStream().
void ErrorHandling::RuntimeErrorCollector::message | ( | RuntimeError::ErrorLevel | level, |
const std::string & | msg, | ||
const char * | function, | ||
const char * | file, | ||
int | line | ||
) |
Definition at line 55 of file RuntimeErrorCollector.cpp.
void ErrorHandling::RuntimeErrorCollector::warning | ( | const char * | msg, |
const char * | function, | ||
const char * | file, | ||
int | line | ||
) |
Definition at line 70 of file RuntimeErrorCollector.cpp.
References warning().
void ErrorHandling::RuntimeErrorCollector::warning | ( | const std::ostringstream & | mstr, |
const char * | function, | ||
const char * | file, | ||
int | line | ||
) |
Definition at line 75 of file RuntimeErrorCollector.cpp.
References warning().
void ErrorHandling::RuntimeErrorCollector::warning | ( | const std::string & | msg, |
const char * | function, | ||
const char * | file, | ||
int | line | ||
) |
Definition at line 63 of file RuntimeErrorCollector.cpp.
References ErrorHandling::RuntimeError::WARNING.