TypeSI
Units of 'Système international' Blended for C++
|
Core logic of units. More...
Go to the source code of this file.
Classes | |
class | Si::Internal::Unit< T, Powers > |
Generic unit type. More... | |
struct | Si::Internal::Tuple< Elements > |
Metastructure to identify and compare typename sets. More... | |
Namespaces | |
namespace | Si::Internal |
Technical namespace for core library logic. | |
Typedefs | |
template<typename T , typename... Powers> | |
using | Si::Internal::Unit = T |
If TYPE_SI_DISABLE_CHECKS flag is set all units are defined as their container type. More... | |
template<typename U > | |
using | Si::Internal::Powers = decltype(getPowers(std::declval< U >())) |
Tool to get tuple of powers from unit. More... | |
template<typename T > | |
using | Si::Internal::Dimensionless = Unit< T, std::ratio< 0 >, std::ratio< 0 >, std::ratio< 0 >, std::ratio< 0 >, std::ratio< 0 >, std::ratio< 0 >, std::ratio< 0 > > |
Dimensionless unit for technical purposes with 7 power values set at 0. More... | |
Variables | |
template<typename T , typename... Powers> | |
Tuple< Powers... > | Si::Internal::getPowers (Unit< T, Powers... >) |
Helper to get tuple of powers from unit. | |
Core logic of units.