#include <triqs/utility/crash_logger.hpp>
RAII helper that writes user-registered objects to an HDF5 crash dump on abnormal scope exit.
- Warning
- This is unused. It might be removed in the future.
Definition at line 46 of file crash_logger.hpp.
|
|
| crash_logger (const crash_logger &)=delete |
| | Deleted copy constructor.
|
|
| crash_logger (crash_logger &&)=default |
| | Default move constructor.
|
| | crash_logger (std::string filename) |
| | Construct a crash logger that will write to an HDF5 file on abnormal exit.
|
|
| ~crash_logger () noexcept |
| | Destructor writes all registered objects to the dump file if there has not been a call to dismiss().
|
|
void | dismiss () |
| | Dismiss the logger by suppressing scope-exit dumps and by releasing registered objects.
|
| template<typename T> |
| crash_logger & | operator() (T const &obj, std::string name) |
| | Register an object to be dumped to a given HDF5 path on abnormal exit.
|
|
crash_logger & | operator= (const crash_logger &)=delete |
| | Deleted copy-assignment.
|
| crash_logger & | operator= (crash_logger &&x) noexcept |
| | Move-assignment takes over guards and names from x.
|
◆ crash_logger()
| triqs::utility::crash_logger::crash_logger |
( |
std::string | filename | ) |
|
|
inline |
Construct a crash logger that will write to an HDF5 file on abnormal exit.
- Parameters
-
| filename | HDF5 file to write to. |
Definition at line 56 of file crash_logger.hpp.
◆ operator()()
template<typename T>
| crash_logger & triqs::utility::crash_logger::operator() |
( |
T const & | obj, |
|
|
std::string | name ) |
|
inline |
Register an object to be dumped to a given HDF5 path on abnormal exit.
- Template Parameters
-
- Parameters
-
| obj | Object to dump on abnormal exit. |
| name | HDF5 path / dataset name. |
- Returns
- Reference to *this for chained registration.
Definition at line 88 of file crash_logger.hpp.
◆ operator=()
Move-assignment takes over guards and names from x.
- Parameters
-
- Returns
- Reference to *this.
Definition at line 73 of file crash_logger.hpp.
The documentation for this class was generated from the following file: