Version: SMASH-3.1
smash::RivetOutput::Proxy Struct Reference

A proxy object that wraps all Rivet::AnalysisHandler calls in an environment where FP errors are disabled.

Definition at line 107 of file rivetoutput.h.

Public Types

using Handler = std::shared_ptr< Rivet::AnalysisHandler >
 Type of handler. More...
 

Public Member Functions

 Proxy (Handler h)
 Construct proxy. More...
 
 Proxy (Proxy &&p)
 Move construct. More...
 
Handler operator-> ()
 Forward calls to handler. More...
 

Public Attributes

Handler h_
 Handler. More...
 
DisableFloatTraps g_
 FP traps temporaryly disabled. More...
 

Member Typedef Documentation

◆ Handler

using smash::RivetOutput::Proxy::Handler = std::shared_ptr<Rivet::AnalysisHandler>

Type of handler.

Definition at line 109 of file rivetoutput.h.

Constructor & Destructor Documentation

◆ Proxy() [1/2]

smash::RivetOutput::Proxy::Proxy ( Handler  h)
inlineexplicit

Construct proxy.

Definition at line 111 of file rivetoutput.h.

111 : h_(h), g_(0) {}
DisableFloatTraps g_
FP traps temporaryly disabled.
Definition: rivetoutput.h:119

◆ Proxy() [2/2]

smash::RivetOutput::Proxy::Proxy ( Proxy &&  p)
inline

Move construct.

Definition at line 113 of file rivetoutput.h.

113 : h_(p.h_), g_(std::move(p.g_)) {}
constexpr int p
Proton.

Member Function Documentation

◆ operator->()

Handler smash::RivetOutput::Proxy::operator-> ( )
inline

Forward calls to handler.

Definition at line 115 of file rivetoutput.h.

115 { return h_; }

Member Data Documentation

◆ h_

Handler smash::RivetOutput::Proxy::h_

Handler.

Definition at line 117 of file rivetoutput.h.

◆ g_

DisableFloatTraps smash::RivetOutput::Proxy::g_

FP traps temporaryly disabled.

Definition at line 119 of file rivetoutput.h.


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