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

#include <G4MulticoutDestination.hh>

+ Inheritance diagram for G4MulticoutDestination:

Public Member Functions

 G4MulticoutDestination ()=default
 
 ~G4MulticoutDestination () 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 60 of file G4MulticoutDestination.hh.

Constructor & Destructor Documentation

◆ G4MulticoutDestination()

G4MulticoutDestination::G4MulticoutDestination ( )
default

◆ ~G4MulticoutDestination()

G4MulticoutDestination::~G4MulticoutDestination ( )
overridedefault

Member Function Documentation

◆ ReceiveG4cerr()

G4int G4MulticoutDestination::ReceiveG4cerr ( const G4String & msg)
inlineoverridevirtual

Reimplemented from G4coutDestination.

Definition at line 88 of file G4MulticoutDestination.hh.

89 {
90 G4bool result = true;
91 std::for_each(begin(), end(), [&](G4coutDestinationUPtr& e) {
92 result &= (e->ReceiveG4cerr_(msg) == 0);
93 });
94 return (result ? 0 : -1);
95 }
std::unique_ptr< G4coutDestination > G4coutDestinationUPtr
bool G4bool
Definition G4Types.hh:86

◆ ReceiveG4cout()

G4int G4MulticoutDestination::ReceiveG4cout ( const G4String & msg)
inlineoverridevirtual

Reimplemented from G4coutDestination.

Definition at line 79 of file G4MulticoutDestination.hh.

80 {
81 G4bool result = true;
82 std::for_each(begin(), end(), [&](G4coutDestinationUPtr& e) {
83 result &= (e->ReceiveG4cout_(msg) == 0);
84 });
85 return (result ? 0 : -1);
86 }

◆ ReceiveG4debug()

G4int G4MulticoutDestination::ReceiveG4debug ( const G4String & msg)
inlineoverridevirtual

Reimplemented from G4coutDestination.

Definition at line 70 of file G4MulticoutDestination.hh.

71 {
72 G4bool result = true;
73 std::for_each(begin(), end(), [&](G4coutDestinationUPtr& e) {
74 result &= (e->ReceiveG4debug_(msg) == 0);
75 });
76 return (result ? 0 : -1);
77 }

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