#include <clamped_math.h>
Public Types | |
| using | type = T |
Public Member Functions | |
| constexpr | ClampedNumeric () |
| template<typename Src > | |
| constexpr | ClampedNumeric (const ClampedNumeric< Src > &rhs) |
| template<typename Src > | |
| constexpr | ClampedNumeric (Src value) |
| template<typename Src > | |
| constexpr | ClampedNumeric (StrictNumeric< Src > value) |
| template<typename Dst > | |
| constexpr ClampedNumeric< typename UnderlyingType< Dst >::type > | Cast () const |
| template<typename Src > | |
| constexpr ClampedNumeric & | operator+= (const Src rhs) |
| template<typename Src > | |
| constexpr ClampedNumeric & | operator-= (const Src rhs) |
| template<typename Src > | |
| constexpr ClampedNumeric & | operator*= (const Src rhs) |
| template<typename Src > | |
| constexpr ClampedNumeric & | operator/= (const Src rhs) |
| template<typename Src > | |
| constexpr ClampedNumeric & | operator%= (const Src rhs) |
| template<typename Src > | |
| constexpr ClampedNumeric & | operator<<= (const Src rhs) |
| template<typename Src > | |
| constexpr ClampedNumeric & | operator>>= (const Src rhs) |
| template<typename Src > | |
| constexpr ClampedNumeric & | operator&= (const Src rhs) |
| template<typename Src > | |
| constexpr ClampedNumeric & | operator|= (const Src rhs) |
| template<typename Src > | |
| constexpr ClampedNumeric & | operator^= (const Src rhs) |
| constexpr ClampedNumeric | operator- () const |
| constexpr ClampedNumeric | operator~ () const |
| constexpr ClampedNumeric | Abs () const |
| template<typename U > | |
| constexpr ClampedNumeric< typename MathWrapper< ClampedMaxOp, T, U >::type > | Max (const U rhs) const |
| template<typename U > | |
| constexpr ClampedNumeric< typename MathWrapper< ClampedMinOp, T, U >::type > | Min (const U rhs) const |
| constexpr ClampedNumeric< typename UnsignedOrFloatForSize< T >::type > | UnsignedAbs () const |
| constexpr ClampedNumeric & | operator++ () |
| constexpr ClampedNumeric | operator++ (int) |
| constexpr ClampedNumeric & | operator-- () |
| constexpr ClampedNumeric | operator-- (int) |
| template<template< typename, typename, typename > class M, typename R > | |
| constexpr ClampedNumeric & | MathOp (const R rhs) |
| template<typename Dst > | |
| constexpr | operator Dst () const |
| constexpr T | RawValue () const |
Static Public Member Functions | |
| template<template< typename, typename, typename > class M, typename L , typename R > | |
| static constexpr ClampedNumeric | MathOp (const L lhs, const R rhs) |
Friends | |
| template<typename Src > | |
| class | ClampedNumeric |
Definition at line 18 of file clamped_math.h.
| using base::internal::ClampedNumeric< T >::type = T |
Definition at line 23 of file clamped_math.h.
|
inlineconstexpr |
Definition at line 25 of file clamped_math.h.
|
inlineconstexpr |
Definition at line 29 of file clamped_math.h.
References base::internal::saturated_cast().
|
inlineconstexpr |
Definition at line 38 of file clamped_math.h.
References base::internal::saturated_cast(), and value.
|
inlineconstexpr |
Definition at line 46 of file clamped_math.h.
References base::internal::saturated_cast(), and value.
|
inlineconstexpr |
Definition at line 89 of file clamped_math.h.
References base::internal::SaturatedAbsWrapper().
|
inlineconstexpr |
Definition at line 53 of file clamped_math.h.
|
inlinestaticconstexpr |
Definition at line 147 of file clamped_math.h.
|
inlineconstexpr |
Definition at line 155 of file clamped_math.h.
|
inlineconstexpr |
Definition at line 96 of file clamped_math.h.
|
inlineconstexpr |
Definition at line 104 of file clamped_math.h.
|
inlineconstexpr |
Definition at line 163 of file clamped_math.h.
|
constexpr |
|
constexpr |
|
constexpr |
|
inlineconstexpr |
Definition at line 120 of file clamped_math.h.
|
inlineconstexpr |
Definition at line 125 of file clamped_math.h.
References value.
|
constexpr |
|
inlineconstexpr |
Definition at line 79 of file clamped_math.h.
References base::internal::SaturatedNegWrapper().
|
inlineconstexpr |
Definition at line 131 of file clamped_math.h.
|
inlineconstexpr |
Definition at line 136 of file clamped_math.h.
References value.
|
constexpr |
|
constexpr |
|
constexpr |
|
constexpr |
|
constexpr |
|
constexpr |
|
inlineconstexpr |
Definition at line 85 of file clamped_math.h.
References base::internal::InvertWrapper().
|
inlineconstexpr |
Definition at line 171 of file clamped_math.h.
|
inlineconstexpr |
Definition at line 115 of file clamped_math.h.
References base::internal::SafeUnsignedAbs().
Definition at line 33 of file clamped_math.h.