|
| GREM_ALWAYS_INLINE constexpr | ConstComponentProxy (const Quantity< N, UnitT > &quantity) noexcept |
| GREM_ALWAYS_INLINE constexpr | operator Quantity< 1, UnitT > () const noexcept |
| GREM_ALWAYS_INLINE constexpr | operator float () const |
| GREM_ALWAYS_INLINE constexpr | operator double () const |
| GREM_ALWAYS_INLINE constexpr | operator DurationBase< float, Ratio< 1, 1 > > () const |
| GREM_ALWAYS_INLINE constexpr | operator DurationBase< double, Ratio< 1, 1 > > () const |
| GREM_ALWAYS_INLINE constexpr | operator Duration () const |
template<size_t OtherN, typename OtherUnitT, size_t OtherIndex>
requires (UnitT{} == OtherUnitT{}) |
| GREM_ALWAYS_INLINE constexpr bool | operator== (const ConstComponentProxy< OtherN, OtherUnitT, OtherIndex > &other) const noexcept |
template<size_t OtherN, typename OtherUnitT, size_t OtherIndex>
requires (UnitT{} == OtherUnitT{}) |
| GREM_ALWAYS_INLINE constexpr auto | operator<=> (const ConstComponentProxy< OtherN, OtherUnitT, OtherIndex > &other) const noexcept |
template<typename OtherUnitT>
requires (UnitT{} == OtherUnitT{}) |
| GREM_ALWAYS_INLINE constexpr bool | operator== (const Quantity< 1, OtherUnitT > &other) const noexcept |
template<typename OtherUnitT>
requires (UnitT{} == OtherUnitT{}) |
| GREM_ALWAYS_INLINE constexpr auto | operator<=> (const Quantity< 1, OtherUnitT > &other) const noexcept |
template<arithmetic Arithmetic>
requires (UnitT::DIMENSION == DIMENSIONLESS && UnitT::MagnitudeType::VALUE == 1.0l) |
| GREM_ALWAYS_INLINE constexpr bool | operator== (Arithmetic other) const noexcept |
template<arithmetic Arithmetic>
requires (UnitT::DIMENSION == DIMENSIONLESS && UnitT::MagnitudeType::VALUE == 1.0l) |
| GREM_ALWAYS_INLINE constexpr auto | operator<=> (Arithmetic other) const noexcept |
| GREM_ALWAYS_INLINE constexpr bool | operator== (Zero) const noexcept |
| GREM_ALWAYS_INLINE constexpr auto | operator<=> (Zero) const noexcept |
template<typename Rep, typename Period>
requires (UnitT::DIMENSION == TIME && !UnitT::MagnitudeType::IS_ABSOLUTE) |
| GREM_ALWAYS_INLINE constexpr bool | operator== (const DurationBase< Rep, Period > &other) const noexcept |
template<typename Rep, typename Period>
requires (UnitT::DIMENSION == TIME && !UnitT::MagnitudeType::IS_ABSOLUTE) |
| GREM_ALWAYS_INLINE constexpr auto | operator<=> (const DurationBase< Rep, Period > &other) const noexcept |
template<unit OtherUnitT>
requires (OtherUnitT::DIMENSION == DIMENSION) |
| GREM_ALWAYS_INLINE constexpr Quantity< 1, Unitless > | in (OtherUnitT unit) const |
template<unit OtherUnitT>
requires (OtherUnitT::DIMENSION == DIMENSION && (OtherUnitT::MagnitudeType::IS_ABSOLUTE == MagnitudeType::IS_ABSOLUTE || OtherUnitT::MagnitudeType::IS_ABSOLUTE)) |
| GREM_ALWAYS_INLINE constexpr Quantity< 1, OtherUnitT > | as (OtherUnitT unit) const |
| GREM_ALWAYS_INLINE constexpr size_t | size () const noexcept |
| GREM_ALWAYS_INLINE size_t | getMinIndex () const |
| GREM_ALWAYS_INLINE size_t | getMaxIndex () const |
template<size_t N, typename UnitT, size_t Index>
class grem::physics::ConstComponentProxy< N, UnitT, Index >
Read-only view of a specific component of a physical vector quantity.
- Template Parameters
-
| N | number of dimensions of the world space, specifying the number of vector components of the quantity (must be 2 or 3). |
| UnitT | unit type of the quantity. |
| Index | index of the referenced component in the quantity vector. |