Gromacs
2018.8
|
#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 keeing 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) | |
Move-constructs the owner. | |
LoggerOwner & | operator= (LoggerOwner &&other) |
Move-assings the owner. | |
const MDLogger & | logger () const |
Returns the logger for writing the logs. | |
Friends | |
class | LoggerBuilder |