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. | |
Type & | operator*= (double x) |
Assignment multiplication by dimensionless number. | |
Type & | operator/= (double x) |
Assignment division by dimensionless number. | |
Type & | operator+= (const Type &x) |
Assignment addition with compatible quantity. | |
Type & | operator-= (const Type &x) |
Assignment subtraction with compatible quantity. | |
Type & | operator+= (double x) |
Assignment addition with double. | |
Type & | operator-= (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. | |
Specialization of Qty for <0,0,0> with conversions to double.
Definition at line 160 of file PhysicalQty.h.