MFEM
v3.4
Finite element discretization library
|
Simple extension of std::ostream. More...
#include <globals.hpp>
Public Member Functions | |
OutStream (std::ostream &out) | |
Construct an OutStream from the given stream out, by using its rdbuf() . More... | |
void | SetStream (std::ostream &out) |
Replace the rdbuf() and tie() of the OutStream with that of out, enabling output. More... | |
void | Enable () |
Enable output. More... | |
void | Disable () |
Disable output. More... | |
bool | IsEnabled () const |
Check if output is enabled. More... | |
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 out, by using its rdbuf()
.
Definition at line 40 of file globals.hpp.
|
inline |
Disable output.
Definition at line 52 of file globals.hpp.
|
inline |
Enable output.
Definition at line 50 of file globals.hpp.
|
inline |
Check if output is enabled.
Definition at line 57 of file globals.hpp.
|
inline |
Replace the rdbuf()
and tie()
of the OutStream with that of out, enabling output.
Definition at line 44 of file globals.hpp.
|
protected |
Definition at line 33 of file globals.hpp.
|
protected |
Definition at line 35 of file globals.hpp.