Flutter Engine
The Flutter Engine
|
#include <checked_math.h>
Public Types | |
using | type = T |
Public Member Functions | |
constexpr | CheckedNumeric ()=default |
template<typename Src > | |
constexpr | CheckedNumeric (const CheckedNumeric< Src > &rhs) |
template<typename 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 (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 18 of file checked_math.h.
using base::internal::CheckedNumeric< T >::type = T |
Definition at line 23 of file checked_math.h.
|
constexprdefault |
|
inlineconstexpr |
Definition at line 29 of file checked_math.h.
|
inlineconstexpr |
Definition at line 38 of file checked_math.h.
|
inlineconstexpr |
Definition at line 46 of file checked_math.h.
|
inlineconstexpr |
Definition at line 159 of file checked_math.h.
|
inlineconstexpr |
Definition at line 69 of file checked_math.h.
|
inlineconstexpr |
Definition at line 107 of file checked_math.h.
|
inlineconstexpr |
Definition at line 54 of file checked_math.h.
|
inlinestaticconstexpr |
Definition at line 229 of file checked_math.h.
|
inlineconstexpr |
Definition at line 240 of file checked_math.h.
|
inlineconstexpr |
Definition at line 164 of file checked_math.h.
|
inlineconstexpr |
Definition at line 179 of file checked_math.h.
|
constexpr |
|
constexpr |
|
constexpr |
|
inlineconstexpr |
Definition at line 202 of file checked_math.h.
|
inlineconstexpr |
Definition at line 207 of file checked_math.h.
|
constexpr |
|
inlineconstexpr |
Definition at line 139 of file checked_math.h.
|
inlineconstexpr |
Definition at line 213 of file checked_math.h.
|
inlineconstexpr |
Definition at line 218 of file checked_math.h.
|
constexpr |
|
constexpr |
|
constexpr |
|
constexpr |
|
constexpr |
|
constexpr |
|
inlineconstexpr |
Definition at line 154 of file checked_math.h.
|
inlineconstexpr |
Definition at line 197 of file checked_math.h.
|
inlineconstexpr |
Definition at line 97 of file checked_math.h.
|
inlineconstexpr |
Definition at line 84 of file checked_math.h.
Definition at line 33 of file checked_math.h.
|
friend |