#include <UnitIO.h>
Public Member Functions | |
IUnit (T &t, const UT &u) | |
Constructor given an object to be read assuming the given unit. | |
IUnit (const IUnit< T, UT > &iu) | |
Copy constructor. | |
Public Attributes | |
T & | theX |
Reference to the object to be read. | |
const UT & | theUnit |
The unit assumed when reading the object. |
An Energy can hence be read like this:
is >> iunit(x, GeV);
Also containers of unitful numbers may be read like this, as well as LorentzVector and ThreeVector.
Definition at line 70 of file UnitIO.h.
ThePEG::IUnit< T, UT >::IUnit | ( | T & | t, | |
const UT & | u | |||
) | [inline] |
T& ThePEG::IUnit< T, UT >::theX |
Reference to the object to be read.
Definition at line 80 of file UnitIO.h.
Referenced by ThePEG::operator>>().
const UT& ThePEG::IUnit< T, UT >::theUnit |
The unit assumed when reading the object.
Definition at line 83 of file UnitIO.h.
Referenced by ThePEG::operator>>().