v8
V8 is Google’s open source high-performance JavaScript and WebAssembly engine, written in C++.
Loading...
Searching...
No Matches
v8::base::internal::ClampedNumeric< T > Class Template Reference

#include <clamped_math.h>

Collaboration diagram for v8::base::internal::ClampedNumeric< T >:

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 ClampedNumericoperator+= (const Src rhs)
 
template<typename Src >
constexpr ClampedNumericoperator-= (const Src rhs)
 
template<typename Src >
constexpr ClampedNumericoperator*= (const Src rhs)
 
template<typename Src >
constexpr ClampedNumericoperator/= (const Src rhs)
 
template<typename Src >
constexpr ClampedNumericoperator%= (const Src rhs)
 
template<typename Src >
constexpr ClampedNumericoperator<<= (const Src rhs)
 
template<typename Src >
constexpr ClampedNumericoperator>>= (const Src rhs)
 
template<typename Src >
constexpr ClampedNumericoperator&= (const Src rhs)
 
template<typename Src >
constexpr ClampedNumericoperator|= (const Src rhs)
 
template<typename Src >
constexpr ClampedNumericoperator^= (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 >::typeMax (U rhs) const
 
template<typename U >
constexpr ClampedNumeric< typename MathWrapper< ClampedMinOp, T, U >::typeMin (U rhs) const
 
constexpr ClampedNumeric< typename UnsignedOrFloatForSize< T >::typeUnsignedAbs () const
 
constexpr ClampedNumericoperator++ ()
 
constexpr ClampedNumeric operator++ (int)
 
constexpr ClampedNumericoperator-- ()
 
constexpr ClampedNumeric operator-- (int)
 
template<template< typename, typename > class M, typename R >
constexpr ClampedNumericMathOp (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
 

Detailed Description

template<typename T>
requires std::is_arithmetic_v<T>
class v8::base::internal::ClampedNumeric< T >

Definition at line 489 of file safe_conversions_impl.h.

Member Typedef Documentation

◆ type

template<typename T >
using v8::base::internal::ClampedNumeric< T >::type = T

Definition at line 24 of file clamped_math.h.

Constructor & Destructor Documentation

◆ ClampedNumeric() [1/4]

template<typename T >
v8::base::internal::ClampedNumeric< T >::ClampedNumeric ( )
constexprdefault

◆ ClampedNumeric() [2/4]

template<typename T >
template<typename Src >
v8::base::internal::ClampedNumeric< T >::ClampedNumeric ( const ClampedNumeric< Src > & rhs)
inlineconstexpr

Definition at line 30 of file clamped_math.h.

◆ ClampedNumeric() [3/4]

template<typename T >
template<typename Src >
requires (IsNumeric<Src>)
v8::base::internal::ClampedNumeric< T >::ClampedNumeric ( Src value)
inlineconstexpr

Definition at line 38 of file clamped_math.h.

◆ ClampedNumeric() [4/4]

template<typename T >
template<typename Src >
v8::base::internal::ClampedNumeric< T >::ClampedNumeric ( StrictNumeric< Src > value)
inlineconstexpr

Definition at line 44 of file clamped_math.h.

Member Function Documentation

◆ Abs()

template<typename T >
ClampedNumeric v8::base::internal::ClampedNumeric< T >::Abs ( ) const
inlineconstexpr

Definition at line 86 of file clamped_math.h.

Here is the call graph for this function:

◆ Cast()

template<typename T >
template<typename Dst >
ClampedNumeric< UnderlyingType< Dst > > v8::base::internal::ClampedNumeric< T >::Cast ( ) const
inlineconstexpr

Definition at line 50 of file clamped_math.h.

◆ MathOp() [1/2]

template<typename T >
template<template< typename, typename > class M, typename L , typename R >
static constexpr ClampedNumeric v8::base::internal::ClampedNumeric< T >::MathOp ( L lhs,
R rhs )
inlinestaticconstexpr

Definition at line 142 of file clamped_math.h.

Here is the call graph for this function:

◆ MathOp() [2/2]

template<typename T >
template<template< typename, typename > class M, typename R >
ClampedNumeric & v8::base::internal::ClampedNumeric< T >::MathOp ( R rhs)
inlineconstexpr

Definition at line 150 of file clamped_math.h.

Here is the call graph for this function:

◆ Max()

template<typename T >
template<typename U >
ClampedNumeric< typename MathWrapper< ClampedMaxOp, T, U >::type > v8::base::internal::ClampedNumeric< T >::Max ( U rhs) const
inlineconstexpr

Definition at line 93 of file clamped_math.h.

Here is the call graph for this function:

◆ Min()

template<typename T >
template<typename U >
ClampedNumeric< typename MathWrapper< ClampedMinOp, T, U >::type > v8::base::internal::ClampedNumeric< T >::Min ( U rhs) const
inlineconstexpr

Definition at line 101 of file clamped_math.h.

Here is the call graph for this function:

◆ operator Dst()

template<typename T >
template<typename Dst >
requires std::is_arithmetic_v<ArithmeticOrUnderlyingEnum<Dst>>
v8::base::internal::ClampedNumeric< T >::operator Dst ( ) const
inlineconstexpr

Definition at line 159 of file clamped_math.h.

◆ operator%=()

template<typename T >
template<typename Src >
ClampedNumeric & v8::base::internal::ClampedNumeric< T >::operator%= ( const Src rhs)
constexpr

◆ operator&=()

template<typename T >
template<typename Src >
ClampedNumeric & v8::base::internal::ClampedNumeric< T >::operator&= ( const Src rhs)
constexpr

◆ operator*=()

template<typename T >
template<typename Src >
ClampedNumeric & v8::base::internal::ClampedNumeric< T >::operator*= ( const Src rhs)
constexpr

◆ operator++() [1/2]

template<typename T >
ClampedNumeric & v8::base::internal::ClampedNumeric< T >::operator++ ( )
inlineconstexpr

Definition at line 117 of file clamped_math.h.

◆ operator++() [2/2]

template<typename T >
ClampedNumeric v8::base::internal::ClampedNumeric< T >::operator++ ( int )
inlineconstexpr

Definition at line 122 of file clamped_math.h.

◆ operator+=()

template<typename T >
template<typename Src >
ClampedNumeric & v8::base::internal::ClampedNumeric< T >::operator+= ( const Src rhs)
constexpr

◆ operator-()

template<typename T >
ClampedNumeric v8::base::internal::ClampedNumeric< T >::operator- ( ) const
inlineconstexpr

Definition at line 76 of file clamped_math.h.

Here is the call graph for this function:

◆ operator--() [1/2]

template<typename T >
ClampedNumeric & v8::base::internal::ClampedNumeric< T >::operator-- ( )
inlineconstexpr

Definition at line 128 of file clamped_math.h.

◆ operator--() [2/2]

template<typename T >
ClampedNumeric v8::base::internal::ClampedNumeric< T >::operator-- ( int )
inlineconstexpr

Definition at line 133 of file clamped_math.h.

◆ operator-=()

template<typename T >
template<typename Src >
ClampedNumeric & v8::base::internal::ClampedNumeric< T >::operator-= ( const Src rhs)
constexpr

◆ operator/=()

template<typename T >
template<typename Src >
ClampedNumeric & v8::base::internal::ClampedNumeric< T >::operator/= ( const Src rhs)
constexpr

◆ operator<<=()

template<typename T >
template<typename Src >
ClampedNumeric & v8::base::internal::ClampedNumeric< T >::operator<<= ( const Src rhs)
constexpr

◆ operator>>=()

template<typename T >
template<typename Src >
ClampedNumeric & v8::base::internal::ClampedNumeric< T >::operator>>= ( const Src rhs)
constexpr

◆ operator^=()

template<typename T >
template<typename Src >
ClampedNumeric & v8::base::internal::ClampedNumeric< T >::operator^= ( const Src rhs)
constexpr

◆ operator|=()

template<typename T >
template<typename Src >
ClampedNumeric & v8::base::internal::ClampedNumeric< T >::operator|= ( const Src rhs)
constexpr

◆ operator~()

template<typename T >
ClampedNumeric v8::base::internal::ClampedNumeric< T >::operator~ ( ) const
inlineconstexpr

Definition at line 82 of file clamped_math.h.

Here is the call graph for this function:

◆ RawValue()

template<typename T >
T v8::base::internal::ClampedNumeric< T >::RawValue ( ) const
inlineconstexpr

Definition at line 166 of file clamped_math.h.

◆ UnsignedAbs()

template<typename T >
ClampedNumeric< typename UnsignedOrFloatForSize< T >::type > v8::base::internal::ClampedNumeric< T >::UnsignedAbs ( ) const
inlineconstexpr

Definition at line 112 of file clamped_math.h.

Here is the call graph for this function:

Friends And Related Symbol Documentation

◆ ClampedNumeric

template<typename T >
template<typename U >
friend class ClampedNumeric
friend

Definition at line 171 of file clamped_math.h.

Member Data Documentation

◆ value_

template<typename T >
T v8::base::internal::ClampedNumeric< T >::value_ = 0
private

Definition at line 173 of file clamped_math.h.


The documentation for this class was generated from the following files: