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