ThePEG  1.8.0
Public Member Functions | Public Attributes | List of all members
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. More...
 

Public Attributes

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

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 237 of file UnitIO.h.

Constructor & Destructor Documentation

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 241 of file UnitIO.h.

Member Data Documentation

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

The estimated error of the number to be read.

Definition at line 247 of file UnitIO.h.

Referenced by ThePEG::operator>>().

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

The unit assumed when reading the object.

Definition at line 250 of file UnitIO.h.

Referenced by ThePEG::operator>>().

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

Reference to the object to be read.

Definition at line 244 of file UnitIO.h.

Referenced by ThePEG::operator>>().


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