wuzp
Wrong Unit? Zero Points! Compile-time checks for units, coordinate systems and points vs. vectors.
Loading...
Searching...
No Matches
wuzp_units Namespace Reference

Classes

struct  UnitImpl
 A unit, given by the rational exponents of the seven SI base units. More...

Typedefs

template<int TimeV_, int LengthV_, int MassV_, int ElectricCurrentV_, int ThermodynamicTemperatureV_, int AmountOfSubstanceV_, int LuminousIntensityV_>
using CreateIntegerUnitImpl
using Acceleration = wuzp::Unit<CreateIntegerUnitImpl<-2, 1, 0, 0, 0, 0, 0>>
using Angle = wuzp::Unit<CreateIntegerUnitImpl<0, 0, 0, 0, 0, 0, 0>>
using AngularAcceleration = wuzp::Unit<CreateIntegerUnitImpl<-2, 0, 0, 0, 0, 0, 0>>
using AngularVelocity = wuzp::Unit<CreateIntegerUnitImpl<-1, 0, 0, 0, 0, 0, 0>>
using Area = wuzp::Unit<CreateIntegerUnitImpl<0, 2, 0, 0, 0, 0, 0>>
using Dimensionless = wuzp::Unit<CreateIntegerUnitImpl<0, 0, 0, 0, 0, 0, 0>>
using Energy = wuzp::Unit<CreateIntegerUnitImpl<-2, 2, 1, 0, 0, 0, 0>>
using Force = wuzp::Unit<CreateIntegerUnitImpl<-2, 1, 1, 0, 0, 0, 0>>
using Torque = wuzp::Unit<CreateIntegerUnitImpl<-2, 2, 1, 0, 0, 0, 0>>
using Frequency = wuzp::Unit<CreateIntegerUnitImpl<-1, 0, 0, 0, 0, 0, 0>>
using Length = wuzp::Unit<CreateIntegerUnitImpl<0, 1, 0, 0, 0, 0, 0>>
using Mass = wuzp::Unit<CreateIntegerUnitImpl<0, 0, 1, 0, 0, 0, 0>>
using Time = wuzp::Unit<CreateIntegerUnitImpl<1, 0, 0, 0, 0, 0, 0>>
using Velocity = wuzp::Unit<CreateIntegerUnitImpl<-1, 1, 0, 0, 0, 0, 0>>
using Volume = wuzp::Unit<CreateIntegerUnitImpl<0, 3, 0, 0, 0, 0, 0>>

Typedef Documentation

◆ Acceleration

Definition at line 21 of file Unit.hpp.

◆ Angle

using wuzp_units::Angle = wuzp::Unit<CreateIntegerUnitImpl<0, 0, 0, 0, 0, 0, 0>>

Definition at line 22 of file Unit.hpp.

◆ AngularAcceleration

Definition at line 23 of file Unit.hpp.

◆ AngularVelocity

Definition at line 24 of file Unit.hpp.

◆ Area

using wuzp_units::Area = wuzp::Unit<CreateIntegerUnitImpl<0, 2, 0, 0, 0, 0, 0>>

Definition at line 25 of file Unit.hpp.

◆ CreateIntegerUnitImpl

template<int TimeV_, int LengthV_, int MassV_, int ElectricCurrentV_, int ThermodynamicTemperatureV_, int AmountOfSubstanceV_, int LuminousIntensityV_>
using wuzp_units::CreateIntegerUnitImpl

◆ Dimensionless

Definition at line 26 of file Unit.hpp.

◆ Energy

using wuzp_units::Energy = wuzp::Unit<CreateIntegerUnitImpl<-2, 2, 1, 0, 0, 0, 0>>

Definition at line 27 of file Unit.hpp.

◆ Force

using wuzp_units::Force = wuzp::Unit<CreateIntegerUnitImpl<-2, 1, 1, 0, 0, 0, 0>>

Definition at line 28 of file Unit.hpp.

◆ Frequency

using wuzp_units::Frequency = wuzp::Unit<CreateIntegerUnitImpl<-1, 0, 0, 0, 0, 0, 0>>

Definition at line 30 of file Unit.hpp.

◆ Length

using wuzp_units::Length = wuzp::Unit<CreateIntegerUnitImpl<0, 1, 0, 0, 0, 0, 0>>

Definition at line 31 of file Unit.hpp.

◆ Mass

using wuzp_units::Mass = wuzp::Unit<CreateIntegerUnitImpl<0, 0, 1, 0, 0, 0, 0>>

Definition at line 32 of file Unit.hpp.

◆ Time

using wuzp_units::Time = wuzp::Unit<CreateIntegerUnitImpl<1, 0, 0, 0, 0, 0, 0>>

Definition at line 33 of file Unit.hpp.

◆ Torque

using wuzp_units::Torque = wuzp::Unit<CreateIntegerUnitImpl<-2, 2, 1, 0, 0, 0, 0>>

Definition at line 29 of file Unit.hpp.

◆ Velocity

using wuzp_units::Velocity = wuzp::Unit<CreateIntegerUnitImpl<-1, 1, 0, 0, 0, 0, 0>>

Definition at line 34 of file Unit.hpp.

◆ Volume

using wuzp_units::Volume = wuzp::Unit<CreateIntegerUnitImpl<0, 3, 0, 0, 0, 0, 0>>

Definition at line 35 of file Unit.hpp.