thepeg is hosted by Hepforge, IPPP Durham
ThePEG 2.3.0
std::complex< ThePEG::QtyDouble > Class 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.
 
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 specialization for std::complex<Qty<0,0,0> > with conversions to complex<double>

Definition at line 25 of file PhysicalQtyComplex.h.

Constructor & Destructor Documentation

◆ complex() [1/2]

constexpr std::complex< ThePEG::QtyDouble >::complex ( double  r = 0.0,
double  i = 0.0 
)
inlineconstexpr

Default constructor.

Definition at line 29 of file PhysicalQtyComplex.h.

◆ complex() [2/2]

constexpr std::complex< ThePEG::QtyDouble >::complex ( complex< double >  C)
inlineconstexpr

Constructor from complex<double>

Definition at line 33 of file PhysicalQtyComplex.h.

Member Function Documentation

◆ imag()

constexpr double std::complex< ThePEG::QtyDouble >::imag ( ) const
inlineconstexpr

Imaginary part.

Definition at line 46 of file PhysicalQtyComplex.h.

◆ operator complex< double >()

constexpr std::complex< ThePEG::QtyDouble >::operator complex< double > ( ) const
inlineconstexpr

Cast to complex<double>

Definition at line 49 of file PhysicalQtyComplex.h.

◆ operator+=()

complex< ThePEG::QtyDouble > & std::complex< ThePEG::QtyDouble >::operator+= ( const complex< ThePEG::QtyDouble x)
inline

Addition-assignment.

Definition at line 55 of file PhysicalQtyComplex.h.

References rawValue().

◆ operator-=()

complex< ThePEG::QtyDouble > & std::complex< ThePEG::QtyDouble >::operator-= ( const complex< ThePEG::QtyDouble x)
inline

Subtraction-assignment.

Definition at line 62 of file PhysicalQtyComplex.h.

References rawValue().

◆ rawValue()

constexpr complex< double > std::complex< ThePEG::QtyDouble >::rawValue ( ) const
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-=().

◆ real()

constexpr double std::complex< ThePEG::QtyDouble >::real ( ) const
inlineconstexpr

Real part.

Definition at line 43 of file PhysicalQtyComplex.h.

Member Data Documentation

◆ rawValue_

complex<double> std::complex< ThePEG::QtyDouble >::rawValue_
private

Internal value of the dimensioned quantity.

Definition at line 69 of file PhysicalQtyComplex.h.


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