Prusa-MMU-Private
PrusaMultiMaterialUpgradev3firmwareforMK3SMK4
Classes | Namespaces | Typedefs | Enumerations | Functions
unit.h File Reference
#include <stdint.h>
Include dependency graph for unit.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  unit::Unit< T, B, U >
 Generic unit type for compile-time conformability testing. More...
 

Namespaces

 unit
 

Typedefs

typedef Unit< long double, Millimeter, Lenght > unit::U_mm
 
typedef Unit< long double, Millimeter, Speed > unit::U_mm_s
 
typedef Unit< long double, Millimeter, Accel > unit::U_mm_s2
 
typedef Unit< long double, Degree, Lenght > unit::U_deg
 
typedef Unit< long double, Degree, Speed > unit::U_deg_s
 
typedef Unit< long double, Degree, Accel > unit::U_deg_s2
 

Enumerations

enum  unit::UnitBase : uint8_t { Millimeter , Degree }
 Base units for conformability testing.
 
enum  unit::UnitType : uint8_t { Lenght , Speed , Accel }
 Unit types for conformability testing.
 

Functions

template<typename T , UnitBase B, UnitType U>
constexpr Unit< T, B, U > unit::operator* (const long double f, const Unit< T, B, U > u)
 
static constexpr U_mm unit::operator""_mm (long double mm)
 
static constexpr U_mm_s unit::operator""_mm_s (long double mm_s)
 
static constexpr U_mm_s2 unit::operator""_mm_s2 (long double mm_s2)
 
static constexpr U_deg unit::operator""_deg (long double deg)
 
static constexpr U_deg_s unit::operator""_deg_s (long double deg_s)
 
static constexpr U_deg_s2 unit::operator""_deg_s2 (long double deg_s2)