|
template<ImmutableQuantityConcept OtherQuantityType>
requires ( (unit::areUnitsEqual<UnitType, quantity_unit<OtherQuantityType>>)&&( std::is_same_v<promote<ValueType, base_type<OtherQuantityType>>, ValueType>)) |
| TFEL_HOST_DEVICE constexpr | Quantity (const OtherQuantityType &src) noexcept |
template<StandardArithmeticTypeConcept T>
requires ((std::is_constructible_v<ValueType, T>)&& // (std::is_convertible_v<ValueType, T>)&& // (unit::areUnitsEqual<UnitType, unit::NoUnit>)&& // (is_mutable)) |
| TFEL_HOST_DEVICE constexpr Quantity & | operator= (const T &src) noexcept |
template<StandardArithmeticTypeConcept T>
requires ((std::is_constructible_v<ValueType, T>)&& // (std::is_convertible_v<ValueType, T>)&& // (unit::areUnitsEqual<UnitType, unit::NoUnit>)&& // (is_mutable)) |
| TFEL_HOST_DEVICE constexpr Quantity & | operator+= (const T &src) noexcept |
template<StandardArithmeticTypeConcept T>
requires ((std::is_constructible_v<ValueType, T>)&& // (std::is_convertible_v<ValueType, T>)&& // (unit::areUnitsEqual<UnitType, unit::NoUnit>)&& // (is_mutable)) |
| TFEL_HOST_DEVICE constexpr Quantity & | operator-= (const T &src) noexcept |
template<ImmutableQuantityConcept OtherQuantityType>
requires ( (unit::areUnitsEqual<UnitType, quantity_unit<OtherQuantityType>>)&&( std::is_same_v<promote<ValueType, base_type<OtherQuantityType>>, ValueType>)&& // (is_mutable)) |
| TFEL_HOST_DEVICE constexpr Quantity & | operator= (const OtherQuantityType &src) noexcept |
| | assignement operator
|
template<ImmutableQuantityConcept OtherQuantityType>
requires ( (unit::areUnitsEqual<UnitType, quantity_unit<OtherQuantityType>>)&&( std::is_same_v<promote<ValueType, base_type<OtherQuantityType>>, ValueType>)&& // (is_mutable)) |
| TFEL_HOST_DEVICE constexpr Quantity & | operator+= (const OtherQuantityType &src) noexcept |
| | operator +=
|
template<ImmutableQuantityConcept OtherQuantityType>
requires ( (unit::areUnitsEqual<UnitType, quantity_unit<OtherQuantityType>>)&&( std::is_same_v<promote<ValueType, base_type<OtherQuantityType>>, ValueType>)&& // (is_mutable)) |
| TFEL_HOST_DEVICE constexpr Quantity & | operator-= (const OtherQuantityType &src) noexcept |
| | operator -=
|
template<StandardArithmeticTypeConcept ValueType2>
requires ((IsQtScalarOperationValid<ValueType, ValueType2>::cond) && // (is_mutable)) |
| TFEL_HOST_DEVICE constexpr Quantity & | operator*= (const ValueType2 &a) noexcept |
| | multiplication by a scalar
|
template<NoUnitImmutableQuantityConcept OtherQuantityType>
requires ( (IsQtScalarOperationValid<ValueType, base_type<OtherQuantityType>>::cond) && // (is_mutable)) |
| TFEL_HOST_DEVICE constexpr Quantity & | operator*= (const OtherQuantityType &a) noexcept |
| | multiplication by a scalar
|
template<StandardArithmeticTypeConcept ValueType2>
requires ((IsQtScalarOperationValid<ValueType, ValueType2>::cond) && // (is_mutable)) |
| TFEL_HOST_DEVICE constexpr Quantity & | operator/= (const ValueType2 &a) noexcept |
| | division by a scalar
|
template<NoUnitImmutableQuantityConcept OtherQuantityType>
requires ( (IsQtScalarOperationValid<ValueType, base_type<OtherQuantityType>>::cond) && // (is_mutable)) |
| TFEL_HOST_DEVICE constexpr Quantity & | operator/= (const OtherQuantityType &a) noexcept |
| | division by a scalar
|
|
TFEL_HOST_DEVICE constexpr qt< UnitType, ValueType > | operator- () const noexcept |
| | negation operator
|