Gromacs  2023.2
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
List of all members | Public Member Functions | Friends
gmx::LoggerOwner Class Reference

#include <gromacs/utility/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.
LoggerOwneroperator= (LoggerOwner &&other) noexcept
 Move-assings the owner.
const MDLoggerlogger () const
 Returns the logger for writing the logs.


class LoggerBuilder

The documentation for this class was generated from the following files: