SI  2.5.4
A header only c++ library that provides type safety and user defined literals for handling physical values defined in the International System of Units.
Classes | Namespaces | Typedefs | Functions
power.h File Reference
#include "detail/number_parser.h"
#include "detail/operator_helpers.h"
#include "detail/unit.h"
#include "detail/unit_symbol.h"
#include "energy.h"
Include dependency graph for power.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  SI::unit_symbol< 'P', std::ratio< 1 > >
 
struct  SI::unit_symbol< 'P', _ratio >
 

Namespaces

 SI
 
 SI::detail
 Namespace containing implementation details for SI.
 
 SI::literals
 

Typedefs

template<typename _type , class _ratio = std::ratio<1>>
using SI::power_t = detail::unit_t< 'P', std::ratio< 1 >, _type, _ratio >
 
template<typename _type >
using SI::atto_watt_t = power_t< _type, std::atto >
 specific units More...
 
template<typename _type >
using SI::femto_watt_t = power_t< _type, std::femto >
 
template<typename _type >
using SI::pico_watt_t = power_t< _type, std::pico >
 
template<typename _type >
using SI::nano_watt_t = power_t< _type, std::nano >
 
template<typename _type >
using SI::micro_watt_t = power_t< _type, std::micro >
 
template<typename _type >
using SI::milli_watt_t = power_t< _type, std::milli >
 
template<typename _type >
using SI::watt_t = power_t< _type, std::ratio< 1 > >
 
template<typename _type >
using SI::kilo_watt_t = power_t< _type, std::kilo >
 
template<typename _type >
using SI::mega_watt_t = power_t< _type, std::mega >
 
template<typename _type >
using SI::giga_watt_t = power_t< _type, std::giga >
 
template<typename _type >
using SI::tera_watt_t = power_t< _type, std::tera >
 
template<typename _type >
using SI::peta_watt_t = power_t< _type, std::peta >
 
template<typename _type >
using SI::exa_watt_t = power_t< _type, std::exa >
 

Functions

template<char... _digits>
constexpr atto_watt_t< int64_t > SI::literals::operator""_aW ()
 
template<char... _digits>
constexpr femto_watt_t< int64_t > SI::literals::operator""_fW ()
 
template<char... _digits>
constexpr pico_watt_t< int64_t > SI::literals::operator""_pW ()
 
template<char... _digits>
constexpr nano_watt_t< int64_t > SI::literals::operator""_nW ()
 
template<char... _digits>
constexpr micro_watt_t< int64_t > SI::literals::operator""_uW ()
 
template<char... _digits>
constexpr milli_watt_t< int64_t > SI::literals::operator""_mW ()
 
template<char... _digits>
constexpr watt_t< int64_t > SI::literals::operator""_W ()
 
template<char... _digits>
constexpr kilo_watt_t< int64_t > SI::literals::operator""_kW ()
 
template<char... _digits>
constexpr mega_watt_t< int64_t > SI::literals::operator""_MW ()
 
template<char... _digits>
constexpr giga_watt_t< int64_t > SI::literals::operator""_GW ()
 
template<char... _digits>
constexpr tera_watt_t< int64_t > SI::literals::operator""_TW ()
 
template<char... _digits>
constexpr peta_watt_t< int64_t > SI::literals::operator""_PW ()
 
template<char... _digits>
constexpr exa_watt_t< int64_t > SI::literals::operator""_EW ()
 
constexpr atto_watt_t< long double > SI::literals::operator""_aW (long double value)
 
constexpr femto_watt_t< long double > SI::literals::operator""_fW (long double value)
 
constexpr pico_watt_t< long double > SI::literals::operator""_pW (long double value)
 
constexpr nano_watt_t< long double > SI::literals::operator""_nW (long double value)
 
constexpr micro_watt_t< long double > SI::literals::operator""_uW (long double value)
 
constexpr milli_watt_t< long double > SI::literals::operator""_mW (long double value)
 
constexpr watt_t< long double > SI::literals::operator""_W (long double value)
 
constexpr kilo_watt_t< long double > SI::literals::operator""_kW (long double value)
 
constexpr mega_watt_t< long double > SI::literals::operator""_MW (long double value)
 
constexpr giga_watt_t< long double > SI::literals::operator""_GW (long double value)
 
constexpr tera_watt_t< long double > SI::literals::operator""_TW (long double value)
 
constexpr peta_watt_t< long double > SI::literals::operator""_PW (long double value)
 
constexpr exa_watt_t< long double > SI::literals::operator""_EW (long double value)