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
area.h File Reference
#include "length.h"
Include dependency graph for area.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< 'L', std::ratio< 1 >, std::ratio< 2 > >
 
struct  SI::unit_symbol< 'L', std::ratio< 1, 10000 >, std::ratio< 2 > >
 
struct  SI::unit_symbol< 'L', std::micro, std::ratio< 2 > >
 
struct  SI::unit_symbol< 'L', std::ratio< 1 >, std::ratio< 3 > >
 
struct  SI::unit_symbol< 'L', std::ratio< 1, 1000000 >, std::ratio< 3 > >
 
struct  SI::unit_symbol< 'L', std::nano, std::ratio< 3 > >
 

Namespaces

 SI
 
 SI::literals
 

Typedefs

template<typename _type , typename _ratio >
using SI::area_t = detail::unit_t< 'L', std::ratio< 2 >, _type, _ratio >
 
template<typename _type >
using SI::square_metre_t = area_t< _type, std::ratio< 1 > >
 
template<typename _type >
using SI::square_centi_metre_t = area_t< _type, std::ratio_multiply< std::centi, std::centi > >
 
template<typename _type >
using SI::square_milli_metre_t = area_t< _type, std::ratio_multiply< std::milli, std::milli > >
 
template<typename _type , typename _ratio >
using SI::volume_t = detail::unit_t< 'L', std::ratio< 3 >, _type, _ratio >
 
template<typename _type >
using SI::cubic_metre_t = volume_t< _type, std::ratio< 1 > >
 
template<typename _type >
using SI::cubic_centi_metre_t = volume_t< _type, std::ratio< 1, 1000000 > >
 
template<typename _type >
using SI::cubic_milli_metre_t = volume_t< _type, std::nano >
 

Functions

template<char... _digits>
constexpr square_metre_t< int64_t > SI::literals::operator""_m2 ()
 
constexpr square_metre_t< long double > SI::literals::operator""_m2 (long double m)
 
template<char... _digits>
constexpr square_centi_metre_t< int64_t > SI::literals::operator""_cm2 ()
 
constexpr square_centi_metre_t< long double > SI::literals::operator""_cm2 (long double cm)
 
template<char... _digits>
constexpr square_milli_metre_t< int64_t > SI::literals::operator""_mm2 ()
 
constexpr square_milli_metre_t< long double > SI::literals::operator""_mm2 (long double mm)
 
template<char... _digits>
constexpr cubic_metre_t< int64_t > SI::literals::operator""_m3 ()
 
constexpr cubic_metre_t< long double > SI::literals::operator""_m3 (long double m)
 
template<char... _digits>
constexpr cubic_centi_metre_t< int64_t > SI::literals::operator""_cm3 ()
 
constexpr cubic_centi_metre_t< long double > SI::literals::operator""_cm3 (long double cm)
 
template<char... _digits>
constexpr cubic_milli_metre_t< int64_t > SI::literals::operator""_mm3 ()
 
constexpr cubic_milli_metre_t< long double > SI::literals::operator""_mm3 (long double mm)