thepeg is hosted by Hepforge, IPPP Durham
ThePEG  2.2.1
ThePEG::Qty< std::ratio< 0 >, std::ratio< 0 >, std::ratio< 0 > > Class Template Reference

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

#include <PhysicalQty.h>

Public Types

using Type = Qty< std::ratio< 0 >, std::ratio< 0 >, std::ratio< 0 > >
 Our type.
 
template<long int Num, long int Den>
using Power = Type
 General power type.
 
using Squared = Type
 The squared type.
 
using Inverse = Type
 The inverse type.
 
using Sqrt = Type
 The sqrt 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<typename U >
constexpr Qty (const U &q, double factor=1.0, enable_if_same_qty< void, Type, U > *=nullptr)
 Constructor from a compatible quantity.
 
constexpr double rawValue () const
 Access to the raw value.
 
constexpr operator double () const
 Cast to double.
 
Typeoperator*= (double x)
 Assignment multiplication by dimensionless number.
 
Typeoperator/= (double x)
 Assignment division by dimensionless number.
 
Typeoperator+= (const Type &x)
 Assignment addition with compatible quantity.
 
Typeoperator-= (const Type &x)
 Assignment subtraction with compatible quantity.
 
Typeoperator+= (double x)
 Assignment addition with double.
 
Typeoperator-= (double x)
 Assignment subtraction with double.
 

Static Public Member Functions

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

Private Attributes

double rawValue_
 The raw value.
 

Detailed Description

template<>
class ThePEG::Qty< std::ratio< 0 >, std::ratio< 0 >, std::ratio< 0 > >

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

Definition at line 160 of file PhysicalQty.h.


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