thepeg is hosted by Hepforge, IPPP Durham
ThePEG 2.3.0
ThePEG::IUnitErr< T, UT > Struct Template Reference

The IUnitErr class is used to facilitate input of unitful numbers with error estimates written out using the OUnitErr class. More...

#include <UnitIO.h>

Public Member Functions

 IUnitErr (T &t, T &dt, const UT &u)
 Constructor given an object to be read assuming the given unit.
 

Public Attributes

T & x
 Reference to the object to be read.
 
T & dx
 The estimated error of the number to be read.
 
UT ut
 The unit assumed when reading the object.
 

Detailed Description

template<typename T, typename UT>
struct ThePEG::IUnitErr< T, UT >

The IUnitErr class is used to facilitate input of unitful numbers with error estimates written out using the OUnitErr class.

Definition at line 239 of file UnitIO.h.

Constructor & Destructor Documentation

◆ IUnitErr()

template<typename T , typename UT >
ThePEG::IUnitErr< T, UT >::IUnitErr ( T &  t,
T &  dt,
const UT &  u 
)
inline

Constructor given an object to be read assuming the given unit.

Definition at line 243 of file UnitIO.h.

Member Data Documentation

◆ dx

template<typename T , typename UT >
T& ThePEG::IUnitErr< T, UT >::dx

The estimated error of the number to be read.

Definition at line 249 of file UnitIO.h.

◆ ut

template<typename T , typename UT >
UT ThePEG::IUnitErr< T, UT >::ut

The unit assumed when reading the object.

Definition at line 252 of file UnitIO.h.

◆ x

template<typename T , typename UT >
T& ThePEG::IUnitErr< T, UT >::x

Reference to the object to be read.

Definition at line 246 of file UnitIO.h.


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