Geant4 11.2.2
Toolkit for the simulation of the passage of particles through matter
Loading...
Searching...
No Matches
G4LockcoutDestination Class Reference

#include <G4LockcoutDestination.hh>

+ Inheritance diagram for G4LockcoutDestination:

Public Member Functions

 G4LockcoutDestination ()=default
 
 ~G4LockcoutDestination () override=default
 
G4int ReceiveG4debug (const G4String &msg) override
 
G4int ReceiveG4cout (const G4String &msg) override
 
G4int ReceiveG4cerr (const G4String &msg) override
 
- Public Member Functions inherited from G4coutDestination
 G4coutDestination ()=default
 
virtual ~G4coutDestination ()=default
 
void AddDebugTransformer (const Transformer &t)
 
void AddDebugTransformer (Transformer &&t)
 
void AddCoutTransformer (const Transformer &t)
 
void AddCoutTransformer (Transformer &&t)
 
void AddCerrTransformer (const Transformer &t)
 
void AddCerrTransformer (Transformer &&t)
 
virtual void ResetTransformers ()
 
G4int ReceiveG4debug_ (const G4String &msg)
 
G4int ReceiveG4cout_ (const G4String &msg)
 
G4int ReceiveG4cerr_ (const G4String &msg)
 

Additional Inherited Members

- Public Types inherited from G4coutDestination
using Transformer = std::function<G4bool(G4String&)>
 
- Protected Attributes inherited from G4coutDestination
std::vector< TransformertransformersDebug
 
std::vector< TransformertransformersCout
 
std::vector< TransformertransformersCerr
 
- Static Protected Attributes inherited from G4coutDestination
static G4MTGLOB_DLL G4coutDestinationmasterG4coutDestination = nullptr
 

Detailed Description

Definition at line 42 of file G4LockcoutDestination.hh.

Constructor & Destructor Documentation

◆ G4LockcoutDestination()

G4LockcoutDestination::G4LockcoutDestination ( )
default

◆ ~G4LockcoutDestination()

G4LockcoutDestination::~G4LockcoutDestination ( )
overridedefault

Member Function Documentation

◆ ReceiveG4cerr()

G4int G4LockcoutDestination::ReceiveG4cerr ( const G4String & msg)
overridevirtual

Reimplemented from G4coutDestination.

Definition at line 56 of file G4LockcoutDestination.cc.

57{
58 G4AutoLock l(&out_mutex);
60}
virtual G4int ReceiveG4cerr(const G4String &msg)

◆ ReceiveG4cout()

G4int G4LockcoutDestination::ReceiveG4cout ( const G4String & msg)
overridevirtual

Reimplemented from G4coutDestination.

Definition at line 48 of file G4LockcoutDestination.cc.

49{
50 G4AutoLock l(&out_mutex);
51 // Forward call to base class
53}
virtual G4int ReceiveG4cout(const G4String &msg)

◆ ReceiveG4debug()

G4int G4LockcoutDestination::ReceiveG4debug ( const G4String & msg)
overridevirtual

Reimplemented from G4coutDestination.

Definition at line 40 of file G4LockcoutDestination.cc.

41{
42 G4AutoLock l(&out_mutex);
43 // Forward call to base class
45}
virtual G4int ReceiveG4debug(const G4String &msg)

The documentation for this class was generated from the following files: