thepeg is hosted by Hepforge, IPPP Durham
ThePEG  2.1.5
ThePEG::Qty< 0, 0, 0, DL, DE, DQ > Class Template Reference

Specialization of Qty for <0,0,0> with conversions to double. More...

#include <PhysicalQty.h>

Public Types

typedef double Squared
 The squared type.
 

Public Member Functions

constexpr Qty (ZeroUnit)
 Default constructor to 0.
 
constexpr Qty (double x=0.0, double factor=1.0)
 Default constructor from a double.
 
template<int DL2, int DE2, int DQ2>
constexpr Qty (const Qty< 0, 0, 0, DL2, DE2, DQ2 > &q, double factor=1.0)
 Constructor from a compatible quantity.
 
constexpr double rawValue () const
 Access to the raw value.
 
constexpr operator double () const
 Cast to double.
 
Qty< 0, 0, 0, DL, DE, DQ > & operator*= (double x)
 Assignment multiplication by dimensionless number.
 
Qty< 0, 0, 0, DL, DE, DQ > & operator/= (double x)
 Assignment division by dimensionless number.
 
template<int DL2, int DE2, int DQ2>
Qty< 0, 0, 0, DL, DE, DQ > & operator+= (const Qty< 0, 0, 0, DL2, DE2, DQ2 > x)
 Assignment addition with compatible quantity.
 
template<int DL2, int DE2, int DQ2>
Qty< 0, 0, 0, DL, DE, DQ > & operator-= (const Qty< 0, 0, 0, DL2, DE2, DQ2 > x)
 Assignment subtraction with compatible quantity.
 
Qty< 0, 0, 0, DL, DE, DQ > & operator+= (double x)
 Assignment addition with double.
 
Qty< 0, 0, 0, DL, DE, DQ > & operator-= (double x)
 Assignment subtraction with double.
 

Static Public Member Functions

static constexpr double baseunit ()
 Basic unit of this quantity.
 

Private Attributes

double rawValue_
 The raw value.
 

Detailed Description

template<int DL, int DE, int DQ>
class ThePEG::Qty< 0, 0, 0, DL, DE, DQ >

Specialization of Qty for <0,0,0> with conversions to double.

Definition at line 169 of file PhysicalQty.h.


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