Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Loading...
Searching...
No Matches
pdfium::internal::CheckedNumeric< T > Class Template Reference

#include <checked_math.h>

Collaboration diagram for pdfium::internal::CheckedNumeric< T >:

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 >::typeCast () const
template<typename Src>
constexpr CheckedNumericoperator+= (const Src rhs)
template<typename Src>
constexpr CheckedNumericoperator-= (const Src rhs)
template<typename Src>
constexpr CheckedNumericoperator*= (const Src rhs)
template<typename Src>
constexpr CheckedNumericoperator/= (const Src rhs)
template<typename Src>
constexpr CheckedNumericoperator%= (const Src rhs)
template<typename Src>
constexpr CheckedNumericoperator<<= (const Src rhs)
template<typename Src>
constexpr CheckedNumericoperator>>= (const Src rhs)
template<typename Src>
constexpr CheckedNumericoperator&= (const Src rhs)
template<typename Src>
constexpr CheckedNumericoperator|= (const Src rhs)
template<typename Src>
constexpr CheckedNumericoperator^= (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 >::typeMax (const U rhs) const
template<typename U>
constexpr CheckedNumeric< typename MathWrapper< CheckedMinOp, T, U >::typeMin (const U rhs) const
constexpr CheckedNumeric< typename UnsignedOrFloatForSize< T >::typeUnsignedAbs () const
constexpr CheckedNumericoperator++ ()
constexpr CheckedNumeric operator++ (int)
constexpr CheckedNumericoperator-- ()
constexpr CheckedNumeric operator-- (int)
template<template< typename, typename, typename > class M, typename R>
constexpr CheckedNumericMathOp (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>
GetNumericValueForTest (const CheckedNumeric< U > &src)

Detailed Description

template<typename T>
class pdfium::internal::CheckedNumeric< T >

Definition at line 19 of file checked_math.h.

Member Typedef Documentation

◆ type

template<typename T>
using pdfium::internal::CheckedNumeric< T >::type = T

Definition at line 27 of file checked_math.h.

Constructor & Destructor Documentation

◆ CheckedNumeric() [1/5]

template<typename T>
pdfium::internal::CheckedNumeric< T >::CheckedNumeric ( )
constexprdefault

◆ CheckedNumeric() [2/5]

template<typename T>
template<typename Src>
pdfium::internal::CheckedNumeric< T >::CheckedNumeric ( const CheckedNumeric< Src > & rhs)
inlineconstexpr

Definition at line 33 of file checked_math.h.

References CheckedNumeric().

Referenced by CheckedNumeric().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ CheckedNumeric() [3/5]

template<typename T>
pdfium::internal::CheckedNumeric< T >::CheckedNumeric ( T value)
inlineconstexpr

Definition at line 40 of file checked_math.h.

◆ CheckedNumeric() [4/5]

template<typename T>
template<typename Src, typename = std::enable_if_t<std::is_arithmetic<Src>::value>>
pdfium::internal::CheckedNumeric< T >::CheckedNumeric ( Src value)
inlineconstexpr

Definition at line 47 of file checked_math.h.

◆ CheckedNumeric() [5/5]

template<typename T>
template<typename Src>
pdfium::internal::CheckedNumeric< T >::CheckedNumeric ( StrictNumeric< Src > value)
inlineconstexpr

Definition at line 53 of file checked_math.h.

References CheckedNumeric().

Referenced by CheckedNumeric().

Here is the call graph for this function:
Here is the caller graph for this function:

Member Function Documentation

◆ Abs()

template<typename T>
CheckedNumeric pdfium::internal::CheckedNumeric< T >::Abs ( ) const
inlineconstexpr

Definition at line 164 of file checked_math.h.

◆ AssignIfValid()

template<typename T>
template<typename Dst>
bool pdfium::internal::CheckedNumeric< T >::AssignIfValid ( Dst * result) const
inlineconstexpr

Definition at line 75 of file checked_math.h.

◆ Cast()

template<typename T>
template<typename Dst>
CheckedNumeric< typename UnderlyingType< Dst >::type > pdfium::internal::CheckedNumeric< T >::Cast ( ) const
inlineconstexpr

Definition at line 113 of file checked_math.h.

◆ IsValid()

template<typename T>
template<typename Dst = T>
bool pdfium::internal::CheckedNumeric< T >::IsValid ( ) const
inlineconstexpr

Definition at line 60 of file checked_math.h.

◆ MathOp() [1/2]

template<typename T>
template<template< typename, typename, typename > class M, typename L, typename R>
constexpr CheckedNumeric pdfium::internal::CheckedNumeric< T >::MathOp ( const L lhs,
const R rhs )
inlinestaticconstexpr

Definition at line 217 of file checked_math.h.

◆ MathOp() [2/2]

template<typename T>
template<template< typename, typename, typename > class M, typename R>
CheckedNumeric & pdfium::internal::CheckedNumeric< T >::MathOp ( const R rhs)
inlineconstexpr

Definition at line 228 of file checked_math.h.

◆ Max()

template<typename T>
template<typename U>
CheckedNumeric< typename MathWrapper< CheckedMaxOp, T, U >::type > pdfium::internal::CheckedNumeric< T >::Max ( const U rhs) const
inlineconstexpr

Definition at line 169 of file checked_math.h.

◆ Min()

template<typename T>
template<typename U>
CheckedNumeric< typename MathWrapper< CheckedMinOp, T, U >::type > pdfium::internal::CheckedNumeric< T >::Min ( const U rhs) const
inlineconstexpr

Definition at line 175 of file checked_math.h.

◆ operator%=()

template<typename T>
template<typename Src>
CheckedNumeric & pdfium::internal::CheckedNumeric< T >::operator%= ( const Src rhs)
constexpr

◆ operator&=()

template<typename T>
template<typename Src>
CheckedNumeric & pdfium::internal::CheckedNumeric< T >::operator&= ( const Src rhs)
constexpr

◆ operator*=()

template<typename T>
template<typename Src>
CheckedNumeric & pdfium::internal::CheckedNumeric< T >::operator*= ( const Src rhs)
constexpr

◆ operator++() [1/2]

template<typename T>
CheckedNumeric & pdfium::internal::CheckedNumeric< T >::operator++ ( )
inlineconstexpr

Definition at line 189 of file checked_math.h.

◆ operator++() [2/2]

template<typename T>
CheckedNumeric pdfium::internal::CheckedNumeric< T >::operator++ ( int )
inlineconstexpr

Definition at line 194 of file checked_math.h.

◆ operator+=()

template<typename T>
template<typename Src>
CheckedNumeric & pdfium::internal::CheckedNumeric< T >::operator+= ( const Src rhs)
constexpr

◆ operator-()

template<typename T>
CheckedNumeric pdfium::internal::CheckedNumeric< T >::operator- ( ) const
inlineconstexpr

Definition at line 145 of file checked_math.h.

◆ operator--() [1/2]

template<typename T>
CheckedNumeric & pdfium::internal::CheckedNumeric< T >::operator-- ( )
inlineconstexpr

Definition at line 200 of file checked_math.h.

◆ operator--() [2/2]

template<typename T>
CheckedNumeric pdfium::internal::CheckedNumeric< T >::operator-- ( int )
inlineconstexpr

Definition at line 205 of file checked_math.h.

◆ operator-=()

template<typename T>
template<typename Src>
CheckedNumeric & pdfium::internal::CheckedNumeric< T >::operator-= ( const Src rhs)
constexpr

◆ operator/=()

template<typename T>
template<typename Src>
CheckedNumeric & pdfium::internal::CheckedNumeric< T >::operator/= ( const Src rhs)
constexpr

◆ operator<<=()

template<typename T>
template<typename Src>
CheckedNumeric & pdfium::internal::CheckedNumeric< T >::operator<<= ( const Src rhs)
constexpr

◆ operator>>=()

template<typename T>
template<typename Src>
CheckedNumeric & pdfium::internal::CheckedNumeric< T >::operator>>= ( const Src rhs)
constexpr

◆ operator^=()

template<typename T>
template<typename Src>
CheckedNumeric & pdfium::internal::CheckedNumeric< T >::operator^= ( const Src rhs)
constexpr

◆ operator|=()

template<typename T>
template<typename Src>
CheckedNumeric & pdfium::internal::CheckedNumeric< T >::operator|= ( const Src rhs)
constexpr

◆ operator~()

template<typename T>
CheckedNumeric pdfium::internal::CheckedNumeric< T >::operator~ ( ) const
inlineconstexpr

Definition at line 159 of file checked_math.h.

◆ UnsignedAbs()

template<typename T>
CheckedNumeric< typename UnsignedOrFloatForSize< T >::type > pdfium::internal::CheckedNumeric< T >::UnsignedAbs ( ) const
inlineconstexpr

Definition at line 184 of file checked_math.h.

◆ ValueOrDefault()

template<typename T>
template<typename Dst = T, typename Src>
StrictNumeric< Dst > pdfium::internal::CheckedNumeric< T >::ValueOrDefault ( const Src default_value) const
inlineconstexpr

Definition at line 103 of file checked_math.h.

◆ ValueOrDie()

template<typename T>
template<typename Dst = T, class CheckHandler = CheckOnFailure>
StrictNumeric< Dst > pdfium::internal::CheckedNumeric< T >::ValueOrDie ( ) const
inlineconstexpr

Definition at line 90 of file checked_math.h.

◆ CheckedNumeric

template<typename T>
template<typename Src>
friend class CheckedNumeric
friend

Definition at line 25 of file checked_math.h.

◆ GetNumericValueForTest

template<typename T>
template<typename U>
U GetNumericValueForTest ( const CheckedNumeric< U > & src)
friend

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