|
NGen
|
A pair of normalized units. More...
#include <UnitsHelper.hpp>
Collaboration diagram for UnitsHelper::normalized_units:Public Member Functions | |
| normalized_units (std::string in_units, std::string out_units) | |
Reduce in_units and out_units to the form the questions below are asked of. | |
| bool | is_identity () const |
| Whether converting between these would leave every value exactly as it is. | |
Public Attributes | |
| std::string | in |
| std::string | out |
A pair of normalized units.
This struct encapsulates the noneish semantics of unit strings, normalizing various representations of "no units" for consistent handling in conversion checks.
| UnitsHelper::normalized_units::normalized_units | ( | std::string | in_units, |
| std::string | out_units ) |
|
inline |
Whether converting between these would leave every value exactly as it is.
True in two cases:
Referenced by UnitsHelper::convert_values(), and UnitsHelper::get_converted_value().
| std::string UnitsHelper::normalized_units::in |
Referenced by normalized_units(), UnitsHelper::convert_values(), UnitsHelper::get_converted_value(), and is_identity().
| std::string UnitsHelper::normalized_units::out |
Referenced by normalized_units(), UnitsHelper::convert_values(), UnitsHelper::get_converted_value(), and is_identity().