![]() |
v8
V8 is Google’s open source high-performance JavaScript and WebAssembly engine, written in C++.
|
#include <clamped_math.h>
Classes | |
struct | Wrapper |
Public Types | |
using | type = T |
Public Member Functions | |
constexpr | ClampedNumeric ()=default |
template<typename Src > | |
constexpr | ClampedNumeric (const ClampedNumeric< Src > &rhs) |
template<typename Src > requires (IsNumeric<Src>) | |
constexpr | ClampedNumeric (Src value) |
template<typename Src > | |
constexpr | ClampedNumeric (StrictNumeric< Src > value) |
template<typename Dst > | |
constexpr ClampedNumeric< UnderlyingType< Dst > > | 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 (U rhs) const |
template<typename U > | |
constexpr ClampedNumeric< typename MathWrapper< ClampedMinOp, T, U >::type > | Min (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 > class M, typename R > | |
constexpr ClampedNumeric & | MathOp (R rhs) |
template<typename Dst > requires std::is_arithmetic_v<ArithmeticOrUnderlyingEnum<Dst>> | |
constexpr | operator Dst () const |
constexpr T | RawValue () const |
Static Public Member Functions | |
template<template< typename, typename > class M, typename L , typename R > | |
static constexpr ClampedNumeric | MathOp (L lhs, R rhs) |
Private Attributes | |
T | value_ = 0 |
Friends | |
template<typename U > | |
class | ClampedNumeric |
Definition at line 489 of file safe_conversions_impl.h.
using v8::base::internal::ClampedNumeric< T >::type = T |
Definition at line 24 of file clamped_math.h.
|
constexprdefault |
|
inlineconstexpr |
Definition at line 30 of file clamped_math.h.
|
inlineconstexpr |
Definition at line 38 of file clamped_math.h.
|
inlineconstexpr |
Definition at line 44 of file clamped_math.h.
|
inlineconstexpr |
|
inlineconstexpr |
Definition at line 50 of file clamped_math.h.
|
inlinestaticconstexpr |
|
inlineconstexpr |
|
inlineconstexpr |
|
inlineconstexpr |
|
inlineconstexpr |
Definition at line 159 of file clamped_math.h.
|
constexpr |
|
constexpr |
|
constexpr |
|
inlineconstexpr |
Definition at line 117 of file clamped_math.h.
|
inlineconstexpr |
Definition at line 122 of file clamped_math.h.
|
constexpr |
|
inlineconstexpr |
|
inlineconstexpr |
Definition at line 128 of file clamped_math.h.
|
inlineconstexpr |
Definition at line 133 of file clamped_math.h.
|
constexpr |
|
constexpr |
|
constexpr |
|
constexpr |
|
constexpr |
|
constexpr |
|
inlineconstexpr |
|
inlineconstexpr |
Definition at line 166 of file clamped_math.h.
|
inlineconstexpr |
Definition at line 171 of file clamped_math.h.
|
private |
Definition at line 173 of file clamped_math.h.