WPILibC++ 2024.3.2
units::category Namespace Reference

namespace representing the implemented base and derived unit types. More...

Typedefs

typedef base_unit scalar_unit
 Represents a quantity with no dimension. More...
 
typedef base_unit dimensionless_unit
 Represents a quantity with no dimension. More...
 
typedef base_unit< detail::meter_ratio< 1 > > length_unit
 Represents an SI base unit of length. More...
 
typedef base_unit< detail::meter_ratio< 0 >, std::ratio< 1 > > mass_unit
 Represents an SI base unit of mass. More...
 
typedef base_unit< detail::meter_ratio< 0 >, std::ratio< 0 >, std::ratio< 1 > > time_unit
 Represents an SI base unit of time. More...
 
typedef base_unit< detail::meter_ratio< 0 >, std::ratio< 0 >, std::ratio< 0 >, std::ratio< 1 > > angle_unit
 Represents an SI base unit of angle. More...
 
typedef base_unit< detail::meter_ratio< 0 >, std::ratio< 0 >, std::ratio< 0 >, std::ratio< 0 >, std::ratio< 1 > > current_unit
 Represents an SI base unit of current. More...
 
typedef base_unit< detail::meter_ratio< 0 >, std::ratio< 0 >, std::ratio< 0 >, std::ratio< 0 >, std::ratio< 0 >, std::ratio< 1 > > temperature_unit
 Represents an SI base unit of temperature. More...
 
typedef base_unit< detail::meter_ratio< 0 >, std::ratio< 0 >, std::ratio< 0 >, std::ratio< 0 >, std::ratio< 0 >, std::ratio< 0 >, std::ratio< 1 > > substance_unit
 Represents an SI base unit of amount of substance. More...
 
typedef base_unit< detail::meter_ratio< 0 >, std::ratio< 0 >, std::ratio< 0 >, std::ratio< 0 >, std::ratio< 0 >, std::ratio< 0 >, std::ratio< 0 >, std::ratio< 1 > > luminous_intensity_unit
 Represents an SI base unit of luminous intensity. More...
 
typedef base_unit< detail::meter_ratio< 0 >, std::ratio< 0 >, std::ratio< 0 >, std::ratio< 2 >, std::ratio< 0 >, std::ratio< 0 >, std::ratio< 0 >, std::ratio< 0 > > solid_angle_unit
 Represents an SI derived unit of solid angle. More...
 
typedef base_unit< detail::meter_ratio< 0 >, std::ratio< 0 >, std::ratio<-1 > > frequency_unit
 Represents an SI derived unit of frequency. More...
 
typedef base_unit< detail::meter_ratio< 1 >, std::ratio< 0 >, std::ratio<-1 > > velocity_unit
 Represents an SI derived unit of velocity. More...
 
typedef base_unit< detail::meter_ratio< 0 >, std::ratio< 0 >, std::ratio<-1 >, std::ratio< 1 > > angular_velocity_unit
 Represents an SI derived unit of angular velocity. More...
 
typedef base_unit< detail::meter_ratio< 1 >, std::ratio< 0 >, std::ratio<-2 > > acceleration_unit
 Represents an SI derived unit of acceleration. More...
 
typedef base_unit< detail::meter_ratio< 0 >, std::ratio< 0 >, std::ratio<-2 >, std::ratio< 1 > > angular_acceleration_unit
 Represents an SI derived unit of angular acceleration. More...
 
typedef base_unit< detail::meter_ratio< 0 >, std::ratio< 0 >, std::ratio<-3 >, std::ratio< 1 > > angular_jerk_unit
 Represents an SI derived unit of angular jerk. More...
 
typedef base_unit< detail::meter_ratio< 1 >, std::ratio< 1 >, std::ratio<-2 > > force_unit
 Represents an SI derived unit of force. More...
 
typedef base_unit< detail::meter_ratio<-1 >, std::ratio< 1 >, std::ratio<-2 > > pressure_unit
 Represents an SI derived unit of pressure. More...
 
typedef base_unit< detail::meter_ratio< 0 >, std::ratio< 0 >, std::ratio< 1 >, std::ratio< 0 >, std::ratio< 1 > > charge_unit
 Represents an SI derived unit of charge. More...
 
typedef base_unit< detail::meter_ratio< 2 >, std::ratio< 1 >, std::ratio<-2 > > energy_unit
 Represents an SI derived unit of energy. More...
 
typedef base_unit< detail::meter_ratio< 2 >, std::ratio< 1 >, std::ratio<-3 > > power_unit
 Represents an SI derived unit of power. More...
 
typedef base_unit< detail::meter_ratio< 2 >, std::ratio< 1 >, std::ratio<-3 >, std::ratio< 0 >, std::ratio<-1 > > voltage_unit
 Represents an SI derived unit of voltage. More...
 
typedef base_unit< detail::meter_ratio<-2 >, std::ratio<-1 >, std::ratio< 4 >, std::ratio< 0 >, std::ratio< 2 > > capacitance_unit
 Represents an SI derived unit of capacitance. More...
 
typedef base_unit< detail::meter_ratio< 2 >, std::ratio< 1 >, std::ratio<-3 >, std::ratio< 0 >, std::ratio<-2 > > impedance_unit
 Represents an SI derived unit of impedance. More...
 
typedef base_unit< detail::meter_ratio<-2 >, std::ratio<-1 >, std::ratio< 3 >, std::ratio< 0 >, std::ratio< 2 > > conductance_unit
 Represents an SI derived unit of conductance. More...
 
typedef base_unit< detail::meter_ratio< 2 >, std::ratio< 1 >, std::ratio<-2 >, std::ratio< 0 >, std::ratio<-1 > > magnetic_flux_unit
 Represents an SI derived unit of magnetic flux. More...
 
typedef base_unit< detail::meter_ratio< 0 >, std::ratio< 1 >, std::ratio<-2 >, std::ratio< 0 >, std::ratio<-1 > > magnetic_field_strength_unit
 Represents an SI derived unit of magnetic field strength. More...
 
typedef base_unit< detail::meter_ratio< 2 >, std::ratio< 1 >, std::ratio<-2 >, std::ratio< 0 >, std::ratio<-2 > > inductance_unit
 Represents an SI derived unit of inductance. More...
 
typedef base_unit< detail::meter_ratio< 0 >, std::ratio< 0 >, std::ratio< 0 >, std::ratio< 2 >, std::ratio< 0 >, std::ratio< 0 >, std::ratio< 0 >, std::ratio< 1 > > luminous_flux_unit
 Represents an SI derived unit of luminous flux. More...
 
typedef base_unit< detail::meter_ratio<-2 >, std::ratio< 0 >, std::ratio< 0 >, std::ratio< 2 >, std::ratio< 0 >, std::ratio< 0 >, std::ratio< 0 >, std::ratio< 1 > > illuminance_unit
 Represents an SI derived unit of illuminance. More...
 
typedef base_unit< detail::meter_ratio< 0 >, std::ratio< 0 >, std::ratio<-1 > > radioactivity_unit
 Represents an SI derived unit of radioactivity. More...
 
typedef base_unit< detail::meter_ratio< 2 >, std::ratio< 1 >, std::ratio<-2 > > torque_unit
 Represents an SI derived unit of torque. More...
 
typedef base_unit< detail::meter_ratio< 2 > > area_unit
 Represents an SI derived unit of area. More...
 
typedef base_unit< detail::meter_ratio< 3 > > volume_unit
 Represents an SI derived unit of volume. More...
 
typedef base_unit< detail::meter_ratio<-3 >, std::ratio< 1 > > density_unit
 Represents an SI derived unit of density. More...
 
typedef base_unit concentration_unit
 Represents a unit of concentration. More...
 
typedef base_unit< detail::meter_ratio< 0 >, std::ratio< 0 >, std::ratio< 0 >, std::ratio< 0 >, std::ratio< 0 >, std::ratio< 0 >, std::ratio< 0 >, std::ratio< 0 >, std::ratio< 1 > > data_unit
 Represents a unit of data size. More...
 
typedef base_unit< detail::meter_ratio< 0 >, std::ratio< 0 >, std::ratio<-1 >, std::ratio< 0 >, std::ratio< 0 >, std::ratio< 0 >, std::ratio< 0 >, std::ratio< 0 >, std::ratio< 1 > > data_transfer_rate_unit
 Represents a unit of data transfer rate. More...
 

Detailed Description

namespace representing the implemented base and derived unit types.

These will not generally be needed by library users.

See also
base_unit for the definition of the category parameters.

Typedef Documentation

◆ acceleration_unit

typedef base_unit<detail::meter_ratio<1>, std::ratio<0>, std::ratio<-2> > units::category::acceleration_unit

Represents an SI derived unit of acceleration.

◆ angle_unit

typedef base_unit<detail::meter_ratio<0>, std::ratio<0>, std::ratio<0>, std::ratio<1> > units::category::angle_unit

Represents an SI base unit of angle.

◆ angular_acceleration_unit

typedef base_unit<detail::meter_ratio<0>, std::ratio<0>, std::ratio<-2>, std::ratio<1> > units::category::angular_acceleration_unit

Represents an SI derived unit of angular acceleration.

◆ angular_jerk_unit

typedef base_unit<detail::meter_ratio<0>, std::ratio<0>, std::ratio<-3>, std::ratio<1> > units::category::angular_jerk_unit

Represents an SI derived unit of angular jerk.

◆ angular_velocity_unit

typedef base_unit<detail::meter_ratio<0>, std::ratio<0>, std::ratio<-1>, std::ratio<1> > units::category::angular_velocity_unit

Represents an SI derived unit of angular velocity.

◆ area_unit

typedef base_unit<detail::meter_ratio<2> > units::category::area_unit

Represents an SI derived unit of area.

◆ capacitance_unit

typedef base_unit<detail::meter_ratio<-2>, std::ratio<-1>, std::ratio<4>, std::ratio<0>, std::ratio<2> > units::category::capacitance_unit

Represents an SI derived unit of capacitance.

◆ charge_unit

typedef base_unit<detail::meter_ratio<0>, std::ratio<0>, std::ratio<1>, std::ratio<0>, std::ratio<1> > units::category::charge_unit

Represents an SI derived unit of charge.

◆ concentration_unit

Represents a unit of concentration.

◆ conductance_unit

typedef base_unit<detail::meter_ratio<-2>, std::ratio<-1>, std::ratio<3>, std::ratio<0>, std::ratio<2> > units::category::conductance_unit

Represents an SI derived unit of conductance.

◆ current_unit

typedef base_unit<detail::meter_ratio<0>, std::ratio<0>, std::ratio<0>, std::ratio<0>, std::ratio<1> > units::category::current_unit

Represents an SI base unit of current.

◆ data_transfer_rate_unit

typedef base_unit<detail::meter_ratio<0>, std::ratio<0>, std::ratio<-1>, std::ratio<0>, std::ratio<0>, std::ratio<0>, std::ratio<0>, std::ratio<0>, std::ratio<1> > units::category::data_transfer_rate_unit

Represents a unit of data transfer rate.

◆ data_unit

typedef base_unit<detail::meter_ratio<0>, std::ratio<0>, std::ratio<0>, std::ratio<0>, std::ratio<0>, std::ratio<0>, std::ratio<0>, std::ratio<0>, std::ratio<1> > units::category::data_unit

Represents a unit of data size.

◆ density_unit

typedef base_unit<detail::meter_ratio<-3>, std::ratio<1> > units::category::density_unit

Represents an SI derived unit of density.

◆ dimensionless_unit

Represents a quantity with no dimension.

◆ energy_unit

typedef base_unit<detail::meter_ratio<2>, std::ratio<1>, std::ratio<-2> > units::category::energy_unit

Represents an SI derived unit of energy.

◆ force_unit

typedef base_unit<detail::meter_ratio<1>, std::ratio<1>, std::ratio<-2> > units::category::force_unit

Represents an SI derived unit of force.

◆ frequency_unit

typedef base_unit<detail::meter_ratio<0>, std::ratio<0>, std::ratio<-1> > units::category::frequency_unit

Represents an SI derived unit of frequency.

◆ illuminance_unit

typedef base_unit<detail::meter_ratio<-2>, std::ratio<0>, std::ratio<0>, std::ratio<2>, std::ratio<0>, std::ratio<0>, std::ratio<0>, std::ratio<1> > units::category::illuminance_unit

Represents an SI derived unit of illuminance.

◆ impedance_unit

typedef base_unit<detail::meter_ratio<2>, std::ratio<1>, std::ratio<-3>, std::ratio<0>, std::ratio<-2> > units::category::impedance_unit

Represents an SI derived unit of impedance.

◆ inductance_unit

typedef base_unit<detail::meter_ratio<2>, std::ratio<1>, std::ratio<-2>, std::ratio<0>, std::ratio<-2> > units::category::inductance_unit

Represents an SI derived unit of inductance.

◆ length_unit

typedef base_unit<detail::meter_ratio<1> > units::category::length_unit

Represents an SI base unit of length.

◆ luminous_flux_unit

typedef base_unit<detail::meter_ratio<0>, std::ratio<0>, std::ratio<0>, std::ratio<2>, std::ratio<0>, std::ratio<0>, std::ratio<0>, std::ratio<1> > units::category::luminous_flux_unit

Represents an SI derived unit of luminous flux.

◆ luminous_intensity_unit

typedef base_unit<detail::meter_ratio<0>, std::ratio<0>, std::ratio<0>, std::ratio<0>, std::ratio<0>, std::ratio<0>, std::ratio<0>, std::ratio<1> > units::category::luminous_intensity_unit

Represents an SI base unit of luminous intensity.

◆ magnetic_field_strength_unit

typedef base_unit<detail::meter_ratio<0>, std::ratio<1>, std::ratio<-2>, std::ratio<0>, std::ratio<-1> > units::category::magnetic_field_strength_unit

Represents an SI derived unit of magnetic field strength.

◆ magnetic_flux_unit

typedef base_unit<detail::meter_ratio<2>, std::ratio<1>, std::ratio<-2>, std::ratio<0>, std::ratio<-1> > units::category::magnetic_flux_unit

Represents an SI derived unit of magnetic flux.

◆ mass_unit

typedef base_unit<detail::meter_ratio<0>, std::ratio<1> > units::category::mass_unit

Represents an SI base unit of mass.

◆ power_unit

typedef base_unit<detail::meter_ratio<2>, std::ratio<1>, std::ratio<-3> > units::category::power_unit

Represents an SI derived unit of power.

◆ pressure_unit

typedef base_unit<detail::meter_ratio<-1>, std::ratio<1>, std::ratio<-2> > units::category::pressure_unit

Represents an SI derived unit of pressure.

◆ radioactivity_unit

typedef base_unit<detail::meter_ratio<0>, std::ratio<0>, std::ratio<-1> > units::category::radioactivity_unit

Represents an SI derived unit of radioactivity.

◆ scalar_unit

Represents a quantity with no dimension.

◆ solid_angle_unit

typedef base_unit<detail::meter_ratio<0>, std::ratio<0>, std::ratio<0>, std::ratio<2>, std::ratio<0>, std::ratio<0>, std::ratio<0>, std::ratio<0> > units::category::solid_angle_unit

Represents an SI derived unit of solid angle.

◆ substance_unit

typedef base_unit<detail::meter_ratio<0>, std::ratio<0>, std::ratio<0>, std::ratio<0>, std::ratio<0>, std::ratio<0>, std::ratio<1> > units::category::substance_unit

Represents an SI base unit of amount of substance.

◆ temperature_unit

typedef base_unit<detail::meter_ratio<0>, std::ratio<0>, std::ratio<0>, std::ratio<0>, std::ratio<0>, std::ratio<1> > units::category::temperature_unit

Represents an SI base unit of temperature.

◆ time_unit

typedef base_unit<detail::meter_ratio<0>, std::ratio<0>, std::ratio<1> > units::category::time_unit

Represents an SI base unit of time.

◆ torque_unit

typedef base_unit<detail::meter_ratio<2>, std::ratio<1>, std::ratio<-2> > units::category::torque_unit

Represents an SI derived unit of torque.

◆ velocity_unit

typedef base_unit<detail::meter_ratio<1>, std::ratio<0>, std::ratio<-1> > units::category::velocity_unit

Represents an SI derived unit of velocity.

◆ voltage_unit

typedef base_unit<detail::meter_ratio<2>, std::ratio<1>, std::ratio<-3>, std::ratio<0>, std::ratio<-1> > units::category::voltage_unit

Represents an SI derived unit of voltage.

◆ volume_unit

typedef base_unit<detail::meter_ratio<3> > units::category::volume_unit

Represents an SI derived unit of volume.