The canonical unit type corresponding to a given unit with its magnitude made absolute.
More...
#include <GREM/physics/quantities.hpp>
|
| consteval | Absolute (UnitT other) |
| | Implicitly convert a unit to its absolute unit.
|
| consteval | operator OtherUnitT () const |
| | Implicitly convert this unit to another unit, where allowed.
|
| consteval auto | operator+ () const |
| | Get the canonical unit resulting from taking the additive identity of a quantity of this unit.
|
| consteval auto | operator- () const |
| | Get the canonical unit resulting from taking the additive inverse of a quantity of this unit.
|
| consteval auto | operator+ (const OtherUnitT &other) const |
| | Get the canonical unit resulting from adding a quantity of another unit to a quantity of this unit.
|
| consteval auto | operator- (const OtherUnitT &other) const |
| | Get the canonical unit resulting from subtracting a quantity of another unit from a quantity of this unit.
|
| consteval auto | operator* (const OtherUnitT &other) const |
| | Get the canonical unit resulting from multiplying a quantity of this unit with a quantity of another unit.
|
| consteval auto | operator/ (const OtherUnitT &other) const |
| | Get the canonical unit resulting from dividing a quantity of this unit by a quantity of another unit.
|
|
| static constexpr auto | getSymbolString () |
| | Get an ASCII string representation of the unit symbol of this unit, e.g. "kg m^2/s" if D is ANGULAR_MOMENTUM and M is 1.
|
| static constexpr auto | getSymbolString () |
| | Get an ASCII string representation of the unit symbol of this unit, e.g. "kg m^2/s" if D is ANGULAR_MOMENTUM and M is 1.
|
template<typename UnitT>
struct grem::physics::Absolute< UnitT >
The canonical unit type corresponding to a given unit with its magnitude made absolute.
- Template Parameters
-
| UnitT | unit type to get the absolute unit of. |
◆ Absolute()
Implicitly convert a unit to its absolute unit.
- Parameters
-
◆ getSymbolString()
template<typename UnitT>
|
|
inlinestaticnodiscardconstexpr |
Get an ASCII string representation of the unit symbol of this unit, e.g. "kg m^2/s" if D is ANGULAR_MOMENTUM and M is 1.
- Returns
- a String or StringView of the unit symbol string.
The documentation for this struct was generated from the following file: