OSSIA
Open Scenario System for Interactive Application
|
Go to the source code of this file.
Namespaces | |
ossia | |
Functions | |
bool | ossia::check_units_convertible (const ossia::unit_t &lhs, const ossia::unit_t &rhs) |
Checks ///. More... | |
std::string_view | ossia::get_dataspace_text (const unit_t &u) |
Parse ///. More... | |
std::string_view | ossia::get_unit_text (const ossia::unit_t &) |
get_unit_text More... | |
std::string_view | ossia::get_unit_accessors (const ossia::unit_t &) |
get_unit_accessors More... | |
ossia::domain | ossia::get_unit_default_domain (const ossia::unit_t &unit) |
std::string_view | ossia::get_pretty_unit_text (const ossia::unit_t &) |
get_pretty_unit_text Unit for human readability and debugging More... | |
char | ossia::get_unit_accessor (const ossia::unit_t &, uint8_t n) |
get_unit_accessor Return the character corresponding to the accessor More... | |
unit_t | ossia::parse_dataspace (std::string_view text) |
parse_dataspace More... | |
unit_t | ossia::parse_unit (std::string_view text, const ossia::unit_t &dataspace) |
parse_unit Takes a text and a dataspace and gives a corresponding unit. More... | |
unit_t | ossia::parse_pretty_unit (std::string_view text) |
parse_pretty_unit Create a unit from a valid unit in the format of get_pretty_unit_text | |
template<typename T > | |
OSSIA_EXPORT ossia::unit_t | ossia::parse_unit (std::string_view text, T dataspace) |
parse_unit Alternative if we already have a dataspace type at hand. More... | |
value_with_unit | ossia::make_value (const ossia::value &v, const ossia::unit_t &u) |
Convert ///. More... | |
unit_t | ossia::make_unit (uint64_t dataspace, uint64_t unit) |
get_unit Create an unit from indexes in the variant More... | |
val_type | ossia::matching_type (const ossia::unit_t &u) |
underlying_type Get the implementation type of an unit More... | |
ossia::val_type | ossia::matching_type (ossia::unit_t &&u) |
value_with_unit | ossia::convert (const ossia::value_with_unit &v, const ossia::unit_t &t) |
convert Convert a value to another unit in the same dataspace More... | |
ossia::value | ossia::convert (const ossia::value &v, const ossia::unit_t &source_unit, const ossia::unit_t &destination_unit) |
convert Convert a value to another unit. More... | |
value | ossia::to_value (const ossia::value_with_unit &v) |
convert Convert a value + unit to a simple value More... | |
unit_t | ossia::to_unit (const ossia::value_with_unit &v) |
to_unit Get the unit part of a value_with_unit | |
std::string | ossia::to_pretty_string (const ossia::value_with_unit &v) |
to_pretty_string Pretty string of unit & value More... | |
ossia::value_with_unit | ossia::merge (const ossia::value_with_unit &, const ossia::value &, ossia::destination_index) |
merge Merge a computed value in a unit-aware value More... | |
ossia::value_with_unit | ossia::merge (const value_with_unit &vu, const ossia::vec2f &val, std::bitset< 2 > idx) |
ossia::value_with_unit | ossia::merge (const value_with_unit &vu, const ossia::vec3f &val, std::bitset< 3 > idx) |
ossia::value_with_unit | ossia::merge (const value_with_unit &vu, const ossia::vec4f &val, std::bitset< 4 > idx) |