Class Dune::XT::Common::LogStream

Inherits from StorageProvider<SuspendableStrBuffer>, std::basic_ostream<char, std::char_traits<char>>.

class Dune::XT::Common::LogStream : private StorageProvider<SuspendableStrBuffer>, public std::basic_ostream<char, std::char_traits<char>>

std::ostream-compatible log stream owning a SuspendableStrBuffer, with suspend/resume and flush support

Method Dune::XT::Common::LogStream::flush

LogStream &Dune::XT::Common::LogStream::flush()

dump buffer into file/stream and clear it

Method Dune::XT::Common::LogStream::suspend

void Dune::XT::Common::LogStream::suspend(PriorityType priority = default_suspend_priority)

forwards suspend to buffer the suspend_priority_ mechanism provides a way to silence streams from ‘higher’ modules no-op if already suspended *

Method Dune::XT::Common::LogStream::resume

void Dune::XT::Common::LogStream::resume(PriorityType priority = default_suspend_priority)

start accepting input into the buffer again no-op if not suspended *

Constructor Dune::XT::Common::LogStream::LogStream

explicit Dune::XT::Common::LogStream::LogStream(SuspendableStrBuffer *&&buffer)

No documentation provided.

Destructor Dune::XT::Common::LogStream::~LogStream

Dune::XT::Common::LogStream::~LogStream() throw() override

No documentation provided.

Variable Dune::XT::Common::LogStream::default_suspend_priority

const PriorityType Dune::XT::Common::LogStream::default_suspend_priority

No documentation provided.

Type alias Dune::XT::Common::LogStream::StorageBaseType

using Dune::XT::Common::LogStream::StorageBaseType = StorageProvider<SuspendableStrBuffer>

No documentation provided.

Type alias Dune::XT::Common::LogStream::BaseType

using Dune::XT::Common::LogStream::BaseType = std::basic_ostream<char, std::char_traits<char>>

No documentation provided.

Type alias Dune::XT::Common::LogStream::PriorityType

using Dune::XT::Common::LogStream::PriorityType = SuspendableStrBuffer::PriorityType

No documentation provided.