![]() |
Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
|
#include <checked_math.h>
Public Types | |
using | type = T |
Public Member Functions | |
constexpr | CheckedNumeric ()=default |
template<typename Src> | |
constexpr | CheckedNumeric (const CheckedNumeric< Src > &rhs) |
constexpr | CheckedNumeric (T value) |
template<typename Src, typename = std::enable_if_t<std::is_arithmetic<Src>::value>> | |
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 (const Src default_value) const |
template<typename Dst> | |
constexpr CheckedNumeric< typename UnderlyingType< Dst >::type > | 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 (const U rhs) const |
template<typename U> | |
constexpr CheckedNumeric< typename MathWrapper< CheckedMinOp, T, U >::type > | Min (const 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, typename > class M, typename R> | |
constexpr CheckedNumeric & | MathOp (const R rhs) |
Static Public Member Functions | |
template<template< typename, typename, typename > class M, typename L, typename R> | |
static constexpr CheckedNumeric | MathOp (const L lhs, const R rhs) |
Friends | |
template<typename Src> | |
class | CheckedNumeric |
template<typename U> | |
U | GetNumericValueForTest (const CheckedNumeric< U > &src) |
Definition at line 19 of file checked_math.h.
using pdfium::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 40 of file checked_math.h.
|
inlineconstexpr |
Definition at line 47 of file checked_math.h.
|
inlineconstexpr |
Definition at line 53 of file checked_math.h.
|
inlineconstexpr |
Definition at line 164 of file checked_math.h.
|
inlineconstexpr |
Definition at line 75 of file checked_math.h.
|
inlineconstexpr |
Definition at line 113 of file checked_math.h.
|
inlineconstexpr |
Definition at line 60 of file checked_math.h.
|
inlinestaticconstexpr |
Definition at line 217 of file checked_math.h.
|
inlineconstexpr |
Definition at line 228 of file checked_math.h.
|
inlineconstexpr |
Definition at line 169 of file checked_math.h.
|
inlineconstexpr |
Definition at line 175 of file checked_math.h.
|
constexpr |
|
constexpr |
|
constexpr |
|
inlineconstexpr |
Definition at line 189 of file checked_math.h.
|
inlineconstexpr |
Definition at line 194 of file checked_math.h.
|
constexpr |
|
inlineconstexpr |
Definition at line 145 of file checked_math.h.
|
inlineconstexpr |
Definition at line 200 of file checked_math.h.
|
inlineconstexpr |
Definition at line 205 of file checked_math.h.
|
constexpr |
|
constexpr |
|
constexpr |
|
constexpr |
|
constexpr |
|
constexpr |
|
inlineconstexpr |
Definition at line 159 of file checked_math.h.
|
inlineconstexpr |
Definition at line 184 of file checked_math.h.
|
inlineconstexpr |
Definition at line 103 of file checked_math.h.
|
inlineconstexpr |
Definition at line 90 of file checked_math.h.
Definition at line 25 of file checked_math.h.
|
friend |