Gromacs
2022.2
|
#include <gromacs/utility/loggerbuilder.h>
Manages memory for a logger built with LoggerBuilder.
This class is responsible of managing all memory allocated by LoggerBuilder that is needed for operation of the actual logger. Also the actual logger instance is owned by this class. This allows keeping the actual logger simple and streamlined.
This class supports move construction and assignment, which allows initializing it on the stack and assigning a new instance if the targets need to be changed.
Public Member Functions | |
LoggerOwner (LoggerOwner &&other) noexcept | |
Move-constructs the owner. | |
LoggerOwner & | operator= (LoggerOwner &&other) noexcept |
Move-assings the owner. | |
const MDLogger & | logger () const |
Returns the logger for writing the logs. | |
Friends | |
class | LoggerBuilder |