![]() |
OpenLB 1.8.1
|
userdefined stream buffer for OstreamManager More...
#include <ostreamManager.h>
Inheritance diagram for olb::OMBuf:
Collaboration diagram for olb::OMBuf:Public Member Functions | |
| OMBuf () | |
| ~OMBuf () override | |
| OMBuf (const OMBuf &rhs) | |
| OMBuf & | operator= (const OMBuf &rhs) |
| void | swap (OMBuf &rhs) |
| OMBuf (std::ostream &str, std::string classname) | |
| void | setMultiOutput (bool b) |
| int | sync () override |
| sync the stream with the output: | |
userdefined stream buffer for OstreamManager
that prefixes each line with a user specified string in squared brackets
Definition at line 36 of file ostreamManager.h.
| olb::OMBuf::OMBuf | ( | ) |
Definition at line 34 of file ostreamManager.cpp.
|
override |
Definition at line 38 of file ostreamManager.cpp.
| olb::OMBuf::OMBuf | ( | const OMBuf & | rhs | ) |
Definition at line 41 of file ostreamManager.cpp.
| olb::OMBuf::OMBuf | ( | std::ostream & | str, |
| std::string | classname ) |
Definition at line 53 of file ostreamManager.cpp.
Definition at line 45 of file ostreamManager.cpp.
| void olb::OMBuf::setMultiOutput | ( | bool | b | ) |
Definition at line 57 of file ostreamManager.cpp.
Here is the caller graph for this function:| void olb::OMBuf::swap | ( | OMBuf & | rhs | ) |
|
override |
sync the stream with the output:
1) first Output "[text] ", then the buffer,
2) reset the buffer
3) and flush the actual output stream
Definition at line 62 of file ostreamManager.cpp.
References olb::ompManager::getRank(), olb::singleton::MpiManager::getRank(), olb::singleton::mpi(), and olb::singleton::omp().
Here is the call graph for this function: