ThePEG 2.3.0
|
Template specialization for std::complex<Qty<0,0,0> > with conversions to complex<double> More...
#include <PhysicalQtyComplex.h>
Public Member Functions | |
constexpr | complex (double r=0.0, double i=0.0) |
Default constructor. | |
constexpr | complex (complex< double > C) |
Constructor from complex<double> | |
constexpr complex< double > | rawValue () const |
The internal representation of the dimensionful quantity. | |
constexpr double | real () const |
Real part. | |
constexpr double | imag () const |
Imaginary part. | |
constexpr | operator complex< double > () const |
Cast to complex<double> | |
complex< ThePEG::QtyDouble > & | operator+= (const complex< ThePEG::QtyDouble > x) |
Addition-assignment. | |
complex< ThePEG::QtyDouble > & | operator-= (const complex< ThePEG::QtyDouble > x) |
Subtraction-assignment. | |
Private Attributes | |
complex< double > | rawValue_ |
Internal value of the dimensioned quantity. | |
Template specialization for std::complex<Qty<0,0,0> > with conversions to complex<double>
Definition at line 25 of file PhysicalQtyComplex.h.
|
inlineconstexpr |
Default constructor.
Definition at line 29 of file PhysicalQtyComplex.h.
|
inlineconstexpr |
Constructor from complex<double>
Definition at line 33 of file PhysicalQtyComplex.h.
|
inlineconstexpr |
Imaginary part.
Definition at line 46 of file PhysicalQtyComplex.h.
|
inlineconstexpr |
Cast to complex<double>
Definition at line 49 of file PhysicalQtyComplex.h.
|
inline |
|
inline |
|
inlineconstexpr |
The internal representation of the dimensionful quantity.
Using this will break dimension-consistency.
Definition at line 40 of file PhysicalQtyComplex.h.
Referenced by operator+=(), and operator-=().
|
inlineconstexpr |
Real part.
Definition at line 43 of file PhysicalQtyComplex.h.
|
private |
Internal value of the dimensioned quantity.
Definition at line 69 of file PhysicalQtyComplex.h.