thepeg is hosted by Hepforge, IPPP Durham
ThePEG  2.2.1
std::complex< ThePEG::QtyDouble > Class Template Reference

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. More...
 
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.
 

Detailed Description

template<>
class std::complex< ThePEG::QtyDouble >

Template specialization for std::complex<Qty<0,0,0> > with conversions to complex<double>

Definition at line 25 of file PhysicalQtyComplex.h.

Member Function Documentation

◆ rawValue()

constexpr complex<double> std::complex< ThePEG::QtyDouble >::rawValue ( ) const
inline

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-=().


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