Searched refs:ClampedNumeric (Results 1 – 4 of 4) sorted by relevance
19 class ClampedNumeric {26 constexpr ClampedNumeric() : value_(0) {} in ClampedNumeric() function30 constexpr ClampedNumeric(const ClampedNumeric<Src>& rhs) in ClampedNumeric() function34 friend class ClampedNumeric; variable39 constexpr ClampedNumeric(Src value) // NOLINT(runtime/explicit) in ClampedNumeric() function47 constexpr ClampedNumeric( in ClampedNumeric() function54 constexpr ClampedNumeric<typename UnderlyingType<Dst>::type> Cast() const { in Cast()60 constexpr ClampedNumeric& operator+=(const Src rhs);62 constexpr ClampedNumeric& operator-=(const Src rhs);64 constexpr ClampedNumeric& operator*=(const Src rhs);[all …]
600 class ClampedNumeric;625 struct UnderlyingType<ClampedNumeric<T>> {
23 class ClampedNumeric30 constexpr ClampedNumeric() : value_(0) {} in ClampedNumeric() function34 constexpr ClampedNumeric(const ClampedNumeric<Src> &rhs) : value_(saturated_cast<T>(rhs.value_)) in ClampedNumeric() function38 friend class ClampedNumeric; variable43 constexpr ClampedNumeric(Src value) // NOLINT(runtime/explicit) in ClampedNumeric() function52 constexpr ClampedNumeric(StrictNumeric<Src> value) // NOLINT(runtime/explicit) in ClampedNumeric() function59 constexpr ClampedNumeric<typename UnderlyingType<Dst>::type> Cast() const in Cast()66 constexpr ClampedNumeric &operator+=(const Src rhs);68 constexpr ClampedNumeric &operator-=(const Src rhs);70 constexpr ClampedNumeric &operator*=(const Src rhs);[all …]
625 class ClampedNumeric;652 struct UnderlyingType<ClampedNumeric<T>>