• Home
  • Raw
  • Download

Lines Matching refs:ClampedNumeric

19 class ClampedNumeric {
26 constexpr ClampedNumeric() : value_(0) {} in ClampedNumeric() function
30 constexpr ClampedNumeric(const ClampedNumeric<Src>& rhs) in ClampedNumeric() function
34 friend class ClampedNumeric; variable
39 constexpr ClampedNumeric(Src value) // NOLINT(runtime/explicit) in ClampedNumeric() function
47 constexpr ClampedNumeric( in ClampedNumeric() function
54 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);
66 constexpr ClampedNumeric& operator/=(const Src rhs);
68 constexpr ClampedNumeric& operator%=(const Src rhs);
70 constexpr ClampedNumeric& operator<<=(const Src rhs);
72 constexpr ClampedNumeric& operator>>=(const Src rhs);
74 constexpr ClampedNumeric& operator&=(const Src rhs);
76 constexpr ClampedNumeric& operator|=(const Src rhs);
78 constexpr ClampedNumeric& operator^=(const Src rhs);
80 constexpr ClampedNumeric operator-() const {
83 return ClampedNumeric<T>(SaturatedNegWrapper(value_));
86 constexpr ClampedNumeric operator~() const {
87 return ClampedNumeric<decltype(InvertWrapper(T()))>(InvertWrapper(value_));
90 constexpr ClampedNumeric Abs() const { in Abs()
93 return ClampedNumeric<T>(SaturatedAbsWrapper(value_)); in Abs()
97 constexpr ClampedNumeric<typename MathWrapper<ClampedMaxOp, T, U>::type> Max( in Max()
100 return ClampedNumeric<result_type>( in Max()
105 constexpr ClampedNumeric<typename MathWrapper<ClampedMinOp, T, U>::type> Min( in Min()
108 return ClampedNumeric<result_type>( in Min()
115 constexpr ClampedNumeric<typename UnsignedOrFloatForSize<T>::type>
117 return ClampedNumeric<typename UnsignedOrFloatForSize<T>::type>( in UnsignedAbs()
121 constexpr ClampedNumeric& operator++() {
126 constexpr ClampedNumeric operator++(int) {
127 ClampedNumeric value = *this;
132 constexpr ClampedNumeric& operator--() {
137 constexpr ClampedNumeric operator--(int) {
138 ClampedNumeric value = *this;
148 static constexpr ClampedNumeric MathOp(const L lhs, const R rhs) { in MathOp()
150 return ClampedNumeric<T>( in MathOp()
156 constexpr ClampedNumeric& MathOp(const R rhs) { in MathOp()
159 ClampedNumeric<T>(Math::template Do<T>(value_, Wrapper<R>::value(rhs))); in MathOp()
190 constexpr ClampedNumeric<typename UnderlyingType<T>::type> MakeClampedNum( in MakeClampedNum()
197 std::ostream& operator<<(std::ostream& os, const ClampedNumeric<T>& value) {
206 constexpr ClampedNumeric<typename MathWrapper<M, L, R>::type> ClampMathOp( in ClampMathOp()
210 return ClampedNumeric<typename Math::result_type>::template MathOp<M>(lhs, in ClampMathOp()
219 constexpr ClampedNumeric<typename ResultType<M, L, R, Args...>::type>
248 using internal::ClampedNumeric;