Skip to content
Snippets Groups Projects
Commit a0027afe authored by Christian Engwer's avatar Christian Engwer
Browse files

added method flush

[[Imported from SVN: r4640]]
parent 30a2c494
No related branches found
No related tags found
No related merge requests found
......@@ -323,6 +323,21 @@ namespace Dune {
return *this;
};
//! \brief pass on flush to underlying output stream
DebugStream& flush() {
if (activator<thislevel, dlevel>::value) {
if (! _tied) {
if (_active)
current->out.flush();
} else {
if (_active && tiedstate->_active)
tiedstate->current->out.flush();
};
}
return *this;
};
//! \brief set activation flag and store old value
void push(bool b) {
// are we at all active?
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment