![]() |
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::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 | error (const std::string &msg, 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 82 of file RuntimeErrorCollector.cpp.
Referenced by flush(), and gather_local().
|
inline |
Definition at line 76 of file RuntimeErrorCollector.hpp.
| int ErrorHandling::RuntimeErrorCollector::count | ( | ) | const |
Get the number of all flying messages on all nodes.
Definition at line 71 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 77 of file RuntimeErrorCollector.cpp.
| void ErrorHandling::RuntimeErrorCollector::error | ( | const std::string & | msg, |
| const char * | function, | ||
| const char * | file, | ||
| int | line | ||
| ) |
Definition at line 64 of file RuntimeErrorCollector.cpp.
References ErrorHandling::RuntimeError::ERROR.
| void ErrorHandling::RuntimeErrorCollector::flush | ( | ) |
Flush error messages to standard error.
Definition at line 87 of file RuntimeErrorCollector.cpp.
References clear().
Referenced by ~RuntimeErrorCollector().
| std::vector< RuntimeError > ErrorHandling::RuntimeErrorCollector::gather | ( | ) |
Definition at line 97 of file RuntimeErrorCollector.cpp.
References Utils::Mpi::gather_buffer().
| void ErrorHandling::RuntimeErrorCollector::gather_local | ( | ) |
Definition at line 107 of file RuntimeErrorCollector.cpp.
References clear(), and Utils::Mpi::gather_buffer().
| void ErrorHandling::RuntimeErrorCollector::message | ( | RuntimeError::ErrorLevel | level, |
| const std::string & | msg, | ||
| const char * | function, | ||
| const char * | file, | ||
| int | line | ||
| ) |
Definition at line 47 of file RuntimeErrorCollector.cpp.
Referenced by ErrorHandling::RuntimeErrorStream::~RuntimeErrorStream().
| void ErrorHandling::RuntimeErrorCollector::warning | ( | const std::string & | msg, |
| const char * | function, | ||
| const char * | file, | ||
| int | line | ||
| ) |
Definition at line 56 of file RuntimeErrorCollector.cpp.
References ErrorHandling::RuntimeError::WARNING.