Dune Core Modules (2.4.1)
debugstream.hh
Go to the documentation of this file.
Intermediate class to implement tie-operation of DebugStream.
Definition: debugstream.hh:156
A few common exception classes.
DebugStream(std::ostream &out=std::cerr)
Create a DebugStream and set initial output stream.
Definition: debugstream.hh:197
DebugStream & flush()
pass on flush to underlying output stream
Definition: debugstream.hh:318
void attach(std::ostream &stream)
set output to a different stream.
Definition: debugstream.hh:367
void detach()
detach current output stream and restore to previous stream
Definition: debugstream.hh:377
void pop()
restore previously set activation flag
Definition: debugstream.hh:345
bool active() const
reports if this stream will produce output
Definition: debugstream.hh:359
bool _active
flag to switch output during runtime
Definition: debugstream.hh:163
unsigned int _tied_streams
how many streams are tied to this state
Definition: debugstream.hh:169
void push(bool b)
set activation flag and store old value
Definition: debugstream.hh:333
bool _tied
are we tied to another DebugStream?
Definition: debugstream.hh:166
StreamWrap * current
current output stream and link to possibly pushed old output streams
Definition: debugstream.hh:160
DebugStream & operator<<(const T data)
Generic types are passed on to current output stream.
Definition: debugstream.hh:265
DebugStream(DebugStreamState &master, std::ostream &fallback=std::cerr)
Create a DebugStream and directly tie to another DebugStream.
Definition: debugstream.hh:217
DebugStream & operator<<(const int data)
explicit specialization so that enums can be printed
Definition: debugstream.hh:287
DebugStream & operator<<(std::ostream &(*f)(std::ostream &))
pass on manipulators to underlying output stream
Definition: debugstream.hh:303
activate if current and mask have common bits switched on.
Definition: debugstream.hh:140
|
Legal Statements / Impressum |
Hosted by TU Dresden |
generated with Hugo v0.111.3
(Dec 22, 23:30, 2024)