OSSIA
Open Scenario System for Interactive Application
ossia::unit_t Struct Referencefinal

Detailed Description

Units give a semantic meaning to the value of a parameter.
They are sorted by categories: every unit in a category is convertible to the other units in the same category.
Every category (coined "dataspace") has a neutral unit to/from which conversions are made.

See also
opp::node::set_unit for a list of all available units

Public Member Functions

 unit_t (const unit_t &) noexcept=default
 
 unit_t (unit_t &&) noexcept=default
 
unit_toperator= (const unit_t &) noexcept=default
 
unit_toperator= (unit_t &&) noexcept=default
 
 unit_t (angle_u t) noexcept
 
 unit_t (degree_u t) noexcept
 
 unit_t (radian_u t) noexcept
 
 unit_t (color_u t) noexcept
 
 unit_t (argb_u t) noexcept
 
 unit_t (rgba_u t) noexcept
 
 unit_t (rgba8_u t) noexcept
 
 unit_t (rgb_u t) noexcept
 
 unit_t (bgr_u t) noexcept
 
 unit_t (argb8_u t) noexcept
 
 unit_t (hsv_u t) noexcept
 
 unit_t (cmy8_u t) noexcept
 
 unit_t (xyz_u t) noexcept
 
 unit_t (distance_u t) noexcept
 
 unit_t (meter_u t) noexcept
 
 unit_t (kilometer_u t) noexcept
 
 unit_t (decimeter_u t) noexcept
 
 unit_t (centimeter_u t) noexcept
 
 unit_t (millimeter_u t) noexcept
 
 unit_t (micrometer_u t) noexcept
 
 unit_t (nanometer_u t) noexcept
 
 unit_t (picometer_u t) noexcept
 
 unit_t (inch_u t) noexcept
 
 unit_t (foot_u t) noexcept
 
 unit_t (mile_u t) noexcept
 
 unit_t (gain_u t) noexcept
 
 unit_t (linear_u t) noexcept
 
 unit_t (midigain_u t) noexcept
 
 unit_t (decibel_u t) noexcept
 
 unit_t (decibel_raw_u t) noexcept
 
 unit_t (orientation_u t) noexcept
 
 unit_t (quaternion_u t) noexcept
 
 unit_t (euler_u t) noexcept
 
 unit_t (axis_u t) noexcept
 
 unit_t (position_u t) noexcept
 
 unit_t (cartesian_3d_u t) noexcept
 
 unit_t (cartesian_2d_u t) noexcept
 
 unit_t (spherical_u t) noexcept
 
 unit_t (polar_u t) noexcept
 
 unit_t (aed_u t) noexcept
 
 unit_t (ad_u t) noexcept
 
 unit_t (opengl_u t) noexcept
 
 unit_t (cylindrical_u t) noexcept
 
 unit_t (azd_u t) noexcept
 
 unit_t (speed_u t) noexcept
 
 unit_t (meter_per_second_u t) noexcept
 
 unit_t (miles_per_hour_u t) noexcept
 
 unit_t (kilometer_per_hour_u t) noexcept
 
 unit_t (knot_u t) noexcept
 
 unit_t (foot_per_hour_u t) noexcept
 
 unit_t (foot_per_second_u t) noexcept
 
 unit_t (timing_u t) noexcept
 
 unit_t (second_u t) noexcept
 
 unit_t (bark_u t) noexcept
 
 unit_t (bpm_u t) noexcept
 
 unit_t (cent_u t) noexcept
 
 unit_t (frequency_u t) noexcept
 
 unit_t (mel_u t) noexcept
 
 unit_t (midi_pitch_u t) noexcept
 
 unit_t (millisecond_u t) noexcept
 
 unit_t (playback_speed_u t) noexcept
 
template<typename T >
 unit_t (T unit, typename T::is_unit *=nullptr) noexcept
 
auto which () const noexcept
 
 operator bool () const noexcept
 

Public Attributes

unit_variant v