|
Phyth v0.1.0
A dimensional safe C++ header-only mechanics and electromagnetics simulation library.
|
#include <ratio>

Go to the source code of this file.
Classes | |
| struct | Phyth::Unit< DimT, Scale, TagT > |
| Physical unit with dimension and scale factor relative to SI base. More... | |
| struct | Phyth::is_unit< T > |
| Trait: check if a type is a Unit instantiation. More... | |
| struct | Phyth::is_unit< Unit< DimT, Scale, TagT > > |
| struct | Phyth::UnitMulBin< U1, U2 > |
| struct | Phyth::UnitDivBin< U1, U2 > |
| struct | Phyth::FoldLeft< F, T > |
| struct | Phyth::FoldLeft< F, T1, T2, Rest... > |
| struct | Phyth::UnitRec< U, Ratio > |
Namespaces | |
| namespace | Phyth |
Typedefs | |
| template<template< typename, typename > class F, typename... Ts> | |
| using | Phyth::FoldLeftT = typename FoldLeft< F, Ts... >::type |
| template<typename... Us> | |
| using | Phyth::UnitMulT = FoldLeftT< UnitMulBin, Us... > |
| template<typename... Us> | |
| using | Phyth::UnitDivT = FoldLeftT< UnitDivBin, Us... > |
| template<typename U , typename Ratio = std::ratio<1>> | |
| using | Phyth::UnitRecT = typename UnitRec< U, Ratio >::type |
Variables | |
| template<typename T > | |
| constexpr bool | Phyth::is_unit_v = is_unit<T>::value |
| struct Phyth::UnitMulBin |
| struct Phyth::UnitDivBin |
| struct Phyth::FoldLeft< F, T > |
| struct Phyth::FoldLeft< F, T1, T2, Rest... > |