MFEM
v4.5.2
Finite element discretization library
|
Simple extension of std::ostream. More...
#include <globals.hpp>
Public Member Functions | |
OutStream (std::ostream &os) | |
Construct an OutStream from the given stream os, by using its rdbuf() . More... | |
void | SetStream (std::ostream &os) |
Replace the rdbuf() and tie() of the OutStream with that of os, enabling output. More... | |
void | Enable () |
Enable output. More... | |
void | Disable () |
Disable output. More... | |
bool | IsEnabled () const |
Check if output is enabled. More... | |
Protected Member Functions | |
void | Init () |
Protected Attributes | |
std::streambuf * | m_rdbuf |
std::ostream * | m_tie |
Simple extension of std::ostream.
This class adds the ability to enable and disable the stream. The associated std::streambuf and tied std::ostream can be replaced with that of any std::ostream.
Definition at line 29 of file globals.hpp.
|
inline |
Construct an OutStream from the given stream os, by using its rdbuf()
.
Definition at line 42 of file globals.hpp.
|
inline |
Disable output.
Definition at line 54 of file globals.hpp.
|
inline |
Enable output.
Definition at line 52 of file globals.hpp.
|
protected |
Definition at line 31 of file globals.cpp.
|
inline |
Check if output is enabled.
Definition at line 59 of file globals.hpp.
|
inline |
Replace the rdbuf()
and tie()
of the OutStream with that of os, enabling output.
Definition at line 46 of file globals.hpp.
|
protected |
Definition at line 33 of file globals.hpp.
|
protected |
Definition at line 35 of file globals.hpp.