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

#include <checked_math_impl.h>

Collaboration diagram for v8::base::internal::CheckedNumericState< T, NUMERIC_INTEGER >:

Public Member Functions

template<typename Src = int>
constexpr CheckedNumericState (Src value=0, bool is_valid=true)
 
template<typename Src >
constexpr CheckedNumericState (const CheckedNumericState< Src > &rhs)
 
constexpr bool is_valid () const
 
constexpr T value () const
 

Static Private Member Functions

template<typename Src >
static constexpr T WellDefinedConversionOrZero (Src value, bool is_valid)
 

Private Attributes

bool is_valid_
 
T value_
 

Detailed Description

template<typename T>
class v8::base::internal::CheckedNumericState< T, NUMERIC_INTEGER >

Definition at line 500 of file checked_math_impl.h.

Constructor & Destructor Documentation

◆ CheckedNumericState() [1/2]

template<typename T >
template<typename Src = int>
v8::base::internal::CheckedNumericState< T, NUMERIC_INTEGER >::CheckedNumericState ( Src value = 0,
bool is_valid = true )
inlineexplicitconstexpr

Definition at line 503 of file checked_math_impl.h.

◆ CheckedNumericState() [2/2]

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

Definition at line 510 of file checked_math_impl.h.

Member Function Documentation

◆ is_valid()

template<typename T >
bool v8::base::internal::CheckedNumericState< T, NUMERIC_INTEGER >::is_valid ( ) const
inlineconstexpr

Definition at line 513 of file checked_math_impl.h.

◆ value()

template<typename T >
T v8::base::internal::CheckedNumericState< T, NUMERIC_INTEGER >::value ( ) const
inlineconstexpr

Definition at line 515 of file checked_math_impl.h.

◆ WellDefinedConversionOrZero()

template<typename T >
template<typename Src >
static constexpr T v8::base::internal::CheckedNumericState< T, NUMERIC_INTEGER >::WellDefinedConversionOrZero ( Src value,
bool is_valid )
inlinestaticconstexprprivate

Definition at line 520 of file checked_math_impl.h.

Member Data Documentation

◆ is_valid_

template<typename T >
bool v8::base::internal::CheckedNumericState< T, NUMERIC_INTEGER >::is_valid_
private

Definition at line 529 of file checked_math_impl.h.

◆ value_

template<typename T >
T v8::base::internal::CheckedNumericState< T, NUMERIC_INTEGER >::value_
private

Definition at line 530 of file checked_math_impl.h.


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