mxlib
c++ tools for analyzing astronomical data and other tasks by Jared R. Males. [git repo]
mx::astro::units::si< _realT > Struct Template Reference

template<typename _realT>
struct mx::astro::units::si< _realT >

International System of Units (SI) units-type.

Since all constants are specified in SI units, all conversions here are 1.0.

Definition at line 36 of file units.hpp.

#include <astro/units.hpp>

Public Types

typedef _realT realT
 The real floating point type in which to specify constants. More...
 

Static Public Attributes

static constexpr realT length = static_cast<realT>(1.0)
 Conversion from SI (m) to SI (m) More...
 
static constexpr realT time = static_cast<realT>(1.0)
 Conversion from SI (s) to SI (s) More...
 
static constexpr realT mass = static_cast<realT>(1.0)
 Conversion from SI (kg) to SI (kg) More...
 
static constexpr realT energy = static_cast<realT>(1.0)
 Conversion from SI (J) to SI (J) More...
 
static constexpr realT temperature = static_cast<realT>(1.0)
 Conversion from SI (K) to SI (K) More...
 

Member Typedef Documentation

◆ realT

template<typename _realT >
typedef _realT mx::astro::units::si< _realT >::realT

The real floating point type in which to specify constants.

Definition at line 38 of file units.hpp.

Member Data Documentation

◆ energy

template<typename _realT >
constexpr realT mx::astro::units::si< _realT >::energy = static_cast<realT>(1.0)
staticconstexpr

Conversion from SI (J) to SI (J)

Definition at line 42 of file units.hpp.

◆ length

template<typename _realT >
constexpr realT mx::astro::units::si< _realT >::length = static_cast<realT>(1.0)
staticconstexpr

Conversion from SI (m) to SI (m)

Definition at line 39 of file units.hpp.

◆ mass

template<typename _realT >
constexpr realT mx::astro::units::si< _realT >::mass = static_cast<realT>(1.0)
staticconstexpr

Conversion from SI (kg) to SI (kg)

Definition at line 41 of file units.hpp.

◆ temperature

template<typename _realT >
constexpr realT mx::astro::units::si< _realT >::temperature = static_cast<realT>(1.0)
staticconstexpr

Conversion from SI (K) to SI (K)

Definition at line 43 of file units.hpp.

◆ time

template<typename _realT >
constexpr realT mx::astro::units::si< _realT >::time = static_cast<realT>(1.0)
staticconstexpr

Conversion from SI (s) to SI (s)

Definition at line 40 of file units.hpp.


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