Geant4-11
|
#include <G4BuffercoutDestination.hh>
Public Types | |
using | Transformer = std::function< G4bool(G4String &)> |
Public Member Functions | |
void | AddCerrTransformer (const Transformer &t) |
void | AddCerrTransformer (Transformer &&t) |
void | AddCoutTransformer (const Transformer &t) |
void | AddCoutTransformer (Transformer &&t) |
virtual void | Finalize () |
virtual G4int | FlushG4cerr () |
virtual G4int | FlushG4cout () |
G4BuffercoutDestination (std::size_t maxSize=0) | |
std::size_t | GetCurrentSizeErr () const |
std::size_t | GetCurrentSizeOut () const |
std::size_t | GetMaxSize () const |
virtual G4int | ReceiveG4cerr (const G4String &msg) override |
G4int | ReceiveG4cerr_ (const G4String &msg) |
virtual G4int | ReceiveG4cout (const G4String &msg) override |
G4int | ReceiveG4cout_ (const G4String &msg) |
virtual void | ResetTransformers () |
void | SetMaxSize (std::size_t max) |
virtual | ~G4BuffercoutDestination () |
Protected Member Functions | |
void | ResetCerr () |
void | ResetCout () |
Protected Attributes | |
std::ostringstream | m_buffer_err |
std::ostringstream | m_buffer_out |
std::size_t | m_currentSize_err = 0 |
std::size_t | m_currentSize_out = 0 |
std::size_t | m_maxSize = 0 |
std::vector< Transformer > | transformersCerr |
std::vector< Transformer > | transformersCout |
Static Protected Attributes | |
static G4MTGLOB_DLL G4coutDestination * | masterG4coutDestination = nullptr |
Definition at line 45 of file G4BuffercoutDestination.hh.
|
inherited |
Definition at line 61 of file G4coutDestination.hh.
|
explicit |
Definition at line 37 of file G4BuffercoutDestination.cc.
|
virtual |
|
inlineinherited |
Definition at line 67 of file G4coutDestination.hh.
References G4coutDestination::transformersCerr.
Referenced by G4MTcoutDestination::HandleFileCerr().
|
inlineinherited |
Definition at line 71 of file G4coutDestination.hh.
References G4coutDestination::transformersCerr.
|
inlineinherited |
Definition at line 62 of file G4coutDestination.hh.
References G4coutDestination::transformersCout.
Referenced by G4MTcoutDestination::AddMasterOutput(), G4MTcoutDestination::HandleFileCout(), and G4MTcoutDestination::SetDefaultOutput().
|
inlineinherited |
Definition at line 66 of file G4coutDestination.hh.
References G4coutDestination::transformersCout.
|
virtual |
Definition at line 47 of file G4BuffercoutDestination.cc.
References FlushG4cerr(), and FlushG4cout().
Referenced by ~G4BuffercoutDestination().
|
virtual |
Definition at line 96 of file G4BuffercoutDestination.cc.
References m_buffer_err, and ResetCerr().
Referenced by G4MTcoutDestination::DumpBuffer(), Finalize(), and ReceiveG4cerr().
|
virtual |
Definition at line 80 of file G4BuffercoutDestination.cc.
References m_buffer_out, and ResetCout().
Referenced by G4MTcoutDestination::DumpBuffer(), Finalize(), and ReceiveG4cout().
|
inline |
Definition at line 66 of file G4BuffercoutDestination.hh.
References m_currentSize_err.
|
inline |
Definition at line 65 of file G4BuffercoutDestination.hh.
References m_currentSize_out.
|
inline |
Reimplemented from G4coutDestination.
Definition at line 67 of file G4BuffercoutDestination.cc.
References FlushG4cerr(), m_buffer_err, m_currentSize_err, and m_maxSize.
Definition at line 84 of file G4coutDestination.cc.
References m, G4coutDestination::ReceiveG4cerr(), G4coutDestination::transformersCerr, and G4coutDestination::transformersCout.
Referenced by G4MasterForwardcoutDestination::ReceiveG4cerr().
Reimplemented from G4coutDestination.
Definition at line 54 of file G4BuffercoutDestination.cc.
References FlushG4cout(), m_buffer_out, m_currentSize_out, and m_maxSize.
Definition at line 62 of file G4coutDestination.cc.
References m, G4coutDestination::ReceiveG4cout(), and G4coutDestination::transformersCout.
Referenced by G4MasterForwardcoutDestination::ReceiveG4cout().
|
protected |
Definition at line 104 of file G4BuffercoutDestination.cc.
References m_buffer_err, and m_currentSize_err.
Referenced by FlushG4cerr().
|
protected |
Definition at line 88 of file G4BuffercoutDestination.cc.
References m_buffer_out, and m_currentSize_out.
Referenced by FlushG4cout().
|
virtualinherited |
Definition at line 41 of file G4coutDestination.cc.
References G4coutDestination::transformersCerr, and G4coutDestination::transformersCout.
|
inline |
Definition at line 63 of file G4BuffercoutDestination.hh.
References m_maxSize, and G4INCL::Math::max().
|
protected |
Definition at line 73 of file G4BuffercoutDestination.hh.
Referenced by FlushG4cerr(), ReceiveG4cerr(), and ResetCerr().
|
protected |
Definition at line 72 of file G4BuffercoutDestination.hh.
Referenced by FlushG4cout(), ReceiveG4cout(), and ResetCout().
|
protected |
Definition at line 75 of file G4BuffercoutDestination.hh.
Referenced by GetCurrentSizeErr(), ReceiveG4cerr(), and ResetCerr().
|
protected |
Definition at line 74 of file G4BuffercoutDestination.hh.
Referenced by GetCurrentSizeOut(), ReceiveG4cout(), and ResetCout().
|
protected |
Definition at line 76 of file G4BuffercoutDestination.hh.
Referenced by GetMaxSize(), ReceiveG4cerr(), ReceiveG4cout(), and SetMaxSize().
|
staticprotectedinherited |
Definition at line 88 of file G4coutDestination.hh.
Referenced by G4UIQt::G4UIQt(), G4MasterForwardcoutDestination::ReceiveG4cerr(), G4MasterForwardcoutDestination::ReceiveG4cout(), and G4UIQt::~G4UIQt().
|
protectedinherited |
Definition at line 94 of file G4coutDestination.hh.
Referenced by G4coutDestination::AddCerrTransformer(), G4coutDestination::ReceiveG4cerr_(), and G4coutDestination::ResetTransformers().
|
protectedinherited |
Definition at line 93 of file G4coutDestination.hh.
Referenced by G4coutDestination::AddCoutTransformer(), G4coutDestination::ReceiveG4cerr_(), G4coutDestination::ReceiveG4cout_(), and G4coutDestination::ResetTransformers().