cphot 0.1
A C++ tool for computing photometry from spectra.
RQuantity< MassDim, LengthDim, TimeDim, AngleDim, CurrentDim, LumDim, SubDim, TempDim > Class Template Reference

prototype template container class, that just holds a double value. More...

#include <rquantities.hpp>

Public Member Functions

constexpr RQuantity ()
 
constexpr RQuantity (double val)
 
constexpr RQuantity (long double val)
 
constexpr RQuantity const & operator+= (const RQuantity &rhs)
 
constexpr RQuantity const & operator-= (const RQuantity &rhs)
 
constexpr double Convert (const RQuantity &rhs) const
 
constexpr double to (const RQuantity &rhs) const
 
constexpr double getValue () const
 

Public Attributes

double value
 

Detailed Description

template<typename MassDim, typename LengthDim, typename TimeDim, typename AngleDim, typename CurrentDim, typename LumDim, typename SubDim, typename TempDim>
class RQuantity< MassDim, LengthDim, TimeDim, AngleDim, CurrentDim, LumDim, SubDim, TempDim >

prototype template container class, that just holds a double value.

Warning
This class is not intended to be used directly, but rather as a base class for the quantity types.

Definition at line 63 of file rquantities.hpp.

Constructor & Destructor Documentation

◆ RQuantity() [1/3]

template<typename MassDim , typename LengthDim , typename TimeDim , typename AngleDim , typename CurrentDim , typename LumDim , typename SubDim , typename TempDim >
constexpr RQuantity< MassDim, LengthDim, TimeDim, AngleDim, CurrentDim, LumDim, SubDim, TempDim >::RQuantity ( )
inlineconstexpr

Definition at line 69 of file rquantities.hpp.

◆ RQuantity() [2/3]

template<typename MassDim , typename LengthDim , typename TimeDim , typename AngleDim , typename CurrentDim , typename LumDim , typename SubDim , typename TempDim >
constexpr RQuantity< MassDim, LengthDim, TimeDim, AngleDim, CurrentDim, LumDim, SubDim, TempDim >::RQuantity ( double  val)
inlineconstexpr

Definition at line 70 of file rquantities.hpp.

◆ RQuantity() [3/3]

template<typename MassDim , typename LengthDim , typename TimeDim , typename AngleDim , typename CurrentDim , typename LumDim , typename SubDim , typename TempDim >
constexpr RQuantity< MassDim, LengthDim, TimeDim, AngleDim, CurrentDim, LumDim, SubDim, TempDim >::RQuantity ( long double  val)
inlineconstexpr

Definition at line 71 of file rquantities.hpp.

Member Function Documentation

◆ Convert()

template<typename MassDim , typename LengthDim , typename TimeDim , typename AngleDim , typename CurrentDim , typename LumDim , typename SubDim , typename TempDim >
constexpr double RQuantity< MassDim, LengthDim, TimeDim, AngleDim, CurrentDim, LumDim, SubDim, TempDim >::Convert ( const RQuantity< MassDim, LengthDim, TimeDim, AngleDim, CurrentDim, LumDim, SubDim, TempDim > &  rhs) const
inlineconstexpr

Definition at line 86 of file rquantities.hpp.

◆ getValue()

template<typename MassDim , typename LengthDim , typename TimeDim , typename AngleDim , typename CurrentDim , typename LumDim , typename SubDim , typename TempDim >
constexpr double RQuantity< MassDim, LengthDim, TimeDim, AngleDim, CurrentDim, LumDim, SubDim, TempDim >::getValue ( ) const
inlineconstexpr

Definition at line 96 of file rquantities.hpp.

◆ operator+=()

template<typename MassDim , typename LengthDim , typename TimeDim , typename AngleDim , typename CurrentDim , typename LumDim , typename SubDim , typename TempDim >
constexpr RQuantity const& RQuantity< MassDim, LengthDim, TimeDim, AngleDim, CurrentDim, LumDim, SubDim, TempDim >::operator+= ( const RQuantity< MassDim, LengthDim, TimeDim, AngleDim, CurrentDim, LumDim, SubDim, TempDim > &  rhs)
inlineconstexpr

Definition at line 74 of file rquantities.hpp.

◆ operator-=()

template<typename MassDim , typename LengthDim , typename TimeDim , typename AngleDim , typename CurrentDim , typename LumDim , typename SubDim , typename TempDim >
constexpr RQuantity const& RQuantity< MassDim, LengthDim, TimeDim, AngleDim, CurrentDim, LumDim, SubDim, TempDim >::operator-= ( const RQuantity< MassDim, LengthDim, TimeDim, AngleDim, CurrentDim, LumDim, SubDim, TempDim > &  rhs)
inlineconstexpr

Definition at line 79 of file rquantities.hpp.

◆ to()

template<typename MassDim , typename LengthDim , typename TimeDim , typename AngleDim , typename CurrentDim , typename LumDim , typename SubDim , typename TempDim >
constexpr double RQuantity< MassDim, LengthDim, TimeDim, AngleDim, CurrentDim, LumDim, SubDim, TempDim >::to ( const RQuantity< MassDim, LengthDim, TimeDim, AngleDim, CurrentDim, LumDim, SubDim, TempDim > &  rhs) const
inlineconstexpr

Definition at line 91 of file rquantities.hpp.

Member Data Documentation

◆ value

template<typename MassDim , typename LengthDim , typename TimeDim , typename AngleDim , typename CurrentDim , typename LumDim , typename SubDim , typename TempDim >
double RQuantity< MassDim, LengthDim, TimeDim, AngleDim, CurrentDim, LumDim, SubDim, TempDim >::value

Definition at line 66 of file rquantities.hpp.


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