![]() |
v8
V8 is Google’s open source high-performance JavaScript and WebAssembly engine, written in C++.
|
#include <checked_math.h>
Classes | |
struct | Wrapper |
struct | Wrapper< CheckedNumeric< Src > > |
struct | Wrapper< StrictNumeric< Src > > |
Public Types | |
using | type = T |
Public Member Functions | |
constexpr | CheckedNumeric ()=default |
template<typename Src > | |
constexpr | CheckedNumeric (const CheckedNumeric< Src > &rhs) |
template<typename Src > requires (std::is_arithmetic_v<Src>) | |
constexpr | CheckedNumeric (Src value) |
template<typename Src > | |
constexpr | CheckedNumeric (StrictNumeric< Src > value) |
template<typename Dst = T> | |
constexpr bool | IsValid () const |
template<typename Dst > | |
constexpr bool | AssignIfValid (Dst *result) const |
template<typename Dst = T, class CheckHandler = CheckOnFailure> | |
constexpr StrictNumeric< Dst > | ValueOrDie () const |
template<typename Dst = T, typename Src > | |
constexpr StrictNumeric< Dst > | ValueOrDefault (Src default_value) const |
template<typename Dst > | |
constexpr CheckedNumeric< UnderlyingType< Dst > > | Cast () const |
template<typename Src > | |
constexpr CheckedNumeric & | operator+= (const Src rhs) |
template<typename Src > | |
constexpr CheckedNumeric & | operator-= (const Src rhs) |
template<typename Src > | |
constexpr CheckedNumeric & | operator*= (const Src rhs) |
template<typename Src > | |
constexpr CheckedNumeric & | operator/= (const Src rhs) |
template<typename Src > | |
constexpr CheckedNumeric & | operator%= (const Src rhs) |
template<typename Src > | |
constexpr CheckedNumeric & | operator<<= (const Src rhs) |
template<typename Src > | |
constexpr CheckedNumeric & | operator>>= (const Src rhs) |
template<typename Src > | |
constexpr CheckedNumeric & | operator&= (const Src rhs) |
template<typename Src > | |
constexpr CheckedNumeric & | operator|= (const Src rhs) |
template<typename Src > | |
constexpr CheckedNumeric & | operator^= (const Src rhs) |
constexpr CheckedNumeric | operator- () const |
constexpr CheckedNumeric | operator~ () const |
constexpr CheckedNumeric | Abs () const |
template<typename U > | |
constexpr CheckedNumeric< typename MathWrapper< CheckedMaxOp, T, U >::type > | Max (U rhs) const |
template<typename U > | |
constexpr CheckedNumeric< typename MathWrapper< CheckedMinOp, T, U >::type > | Min (U rhs) const |
constexpr CheckedNumeric< typename UnsignedOrFloatForSize< T >::type > | UnsignedAbs () const |
constexpr CheckedNumeric & | operator++ () |
constexpr CheckedNumeric | operator++ (int) |
constexpr CheckedNumeric & | operator-- () |
constexpr CheckedNumeric | operator-- (int) |
template<template< typename, typename > class M, typename R > | |
constexpr CheckedNumeric & | MathOp (R rhs) |
Static Public Member Functions | |
template<template< typename, typename > class M, typename L , typename R > | |
static constexpr CheckedNumeric | MathOp (L lhs, R rhs) |
Private Member Functions | |
CheckedNumeric | FastRuntimeNegate () const |
template<typename Src > | |
constexpr | CheckedNumeric (Src value, bool is_valid) |
Private Attributes | |
CheckedNumericState< T > | state_ |
Friends | |
template<typename U > | |
class | CheckedNumeric |
template<typename U > | |
U | GetNumericValueForTest (const CheckedNumeric< U > &src) |
Definition at line 485 of file safe_conversions_impl.h.
using v8::base::internal::CheckedNumeric< T >::type = T |
Definition at line 27 of file checked_math.h.
|
constexprdefault |
|
inlineconstexpr |
Definition at line 33 of file checked_math.h.
|
inlineconstexpr |
Definition at line 41 of file checked_math.h.
|
inlineconstexpr |
Definition at line 47 of file checked_math.h.
|
inlineconstexprprivate |
Definition at line 247 of file checked_math.h.
|
inlineconstexpr |
|
inlineconstexpr |
|
inlineconstexpr |
Definition at line 111 of file checked_math.h.
|
inlineprivate |
Definition at line 240 of file checked_math.h.
|
inlineconstexpr |
Definition at line 54 of file checked_math.h.
|
inlinestaticconstexpr |
|
inlineconstexpr |
|
inlineconstexpr |
Definition at line 167 of file checked_math.h.
|
inlineconstexpr |
Definition at line 173 of file checked_math.h.
|
constexpr |
|
constexpr |
|
constexpr |
|
inlineconstexpr |
Definition at line 187 of file checked_math.h.
|
inlineconstexpr |
Definition at line 192 of file checked_math.h.
|
constexpr |
|
inlineconstexpr |
|
inlineconstexpr |
Definition at line 198 of file checked_math.h.
|
inlineconstexpr |
Definition at line 203 of file checked_math.h.
|
constexpr |
|
constexpr |
|
constexpr |
|
constexpr |
|
constexpr |
|
constexpr |
|
inlineconstexpr |
|
inlineconstexpr |
|
inlineconstexpr |
|
inlineconstexpr |
Definition at line 236 of file checked_math.h.
|
friend |
|
private |
Definition at line 238 of file checked_math.h.