The OUnit< class is used to facilitate output of unitful numbers to a persistent stream.
More...
#include <UnitIO.h>
|
| OUnit (const T &t, const UT &u) |
| Constructor given an object to be written assuming the given unit. More...
|
|
| OUnit (const OUnit< T, UT > &iu) |
| Copy constructor.
|
|
template<typename T, typename UT>
struct ThePEG::OUnit< T, UT >
The OUnit< class is used to facilitate output of unitful numbers to a persistent stream.
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.
- See also
- PersistentOStream
-
PersistentIStream
Definition at line 42 of file UnitIO.h.
◆ OUnit()
template<typename T, typename UT>
Constructor given an object to be written assuming the given unit.
Definition at line 46 of file UnitIO.h.
◆ theUnit
template<typename T, typename UT>
The unit assumed when writing the object.
Definition at line 55 of file UnitIO.h.
◆ theX
template<typename T, typename UT>
The documentation for this struct was generated from the following file: