Phi
Public Types | Public Member Functions | List of all members
floating_point< FloatT > Class Template Reference

Public Types

using this_type = floating_point< FloatT >
 
using value_type = FloatT
 
using limits_type = std::numeric_limits< FloatT >
 

Public Member Functions

template<typename TypeT , typename = detail::enable_safe_floating_point_conversion<TypeT, FloatT>>
PHI_ALWAYS_INLINE PHI_CONSTEXPR floating_point (const TypeT &val) PHI_NOEXCEPT
 
template<typename TypeT , typename = detail::enable_safe_floating_point_conversion<TypeT, FloatT>>
PHI_ALWAYS_INLINE PHI_CONSTEXPR floating_point (const floating_point< TypeT > &val) PHI_NOEXCEPT
 
template<typename TypeT , typename = detail::fallback_safe_floating_point_conversion<TypeT, FloatT>>
 floating_point (TypeT)=delete
 
template<typename TypeT , typename = detail::enable_safe_floating_point_conversion<TypeT, FloatT>>
PHI_ALWAYS_INLINE floating_pointoperator= (const TypeT &val) PHI_NOEXCEPT
 
template<typename TypeT , typename = detail::enable_safe_floating_point_conversion<TypeT, FloatT>>
PHI_ALWAYS_INLINE floating_pointoperator= (const floating_point< TypeT > &val) PHI_NOEXCEPT
 
template<typename TypeT , typename = detail::fallback_safe_floating_point_conversion<TypeT, FloatT>>
floating_pointoperator= (TypeT)=delete
 
PHI_ALWAYS_INLINE PHI_CONSTEXPR operator FloatT () const PHI_NOEXCEPT
 
PHI_NODISCARD PHI_ALWAYS_INLINE PHI_CONSTEXPR FloatT unsafe () const PHI_NOEXCEPT
 
PHI_EXTENDED_CONSTEXPR void swap (floating_point< FloatT > &other) PHI_NOEXCEPT
 
PHI_ALWAYS_INLINE PHI_CONSTEXPR floating_point operator+ () const PHI_NOEXCEPT
 
PHI_ALWAYS_INLINE PHI_CONSTEXPR floating_point operator- () const PHI_NOEXCEPT
 
template<typename TypeT , typename = detail::enable_safe_floating_point_conversion<TypeT, FloatT>>
PHI_ALWAYS_INLINE floating_pointoperator+= (const floating_point< TypeT > &other) PHI_NOEXCEPT
 
template<typename TypeT , typename = detail::enable_safe_floating_point_conversion<TypeT, FloatT>>
PHI_ALWAYS_INLINE floating_pointoperator+= (const TypeT &other) PHI_NOEXCEPT
 
template<typename TypeT , typename = detail::fallback_safe_floating_point_conversion<TypeT, FloatT>>
floating_pointoperator+= (floating_point< TypeT >)=delete
 
template<typename TypeT , typename = detail::fallback_safe_floating_point_conversion<TypeT, FloatT>>
floating_pointoperator+= (TypeT)=delete
 
template<typename TypeT , typename = detail::enable_safe_floating_point_conversion<TypeT, FloatT>>
PHI_ALWAYS_INLINE floating_pointoperator-= (const floating_point< TypeT > &other) PHI_NOEXCEPT
 
template<typename TypeT , typename = detail::enable_safe_floating_point_conversion<TypeT, FloatT>>
PHI_ALWAYS_INLINE floating_pointoperator-= (const TypeT &other) PHI_NOEXCEPT
 
template<typename TypeT , typename = detail::fallback_safe_floating_point_conversion<TypeT, FloatT>>
floating_pointoperator-= (floating_point< TypeT >)=delete
 
template<typename TypeT , typename = detail::fallback_safe_floating_point_conversion<TypeT, FloatT>>
floating_pointoperator-= (TypeT)=delete
 
template<typename TypeT , typename = detail::enable_safe_floating_point_conversion<TypeT, FloatT>>
PHI_ALWAYS_INLINE floating_pointoperator*= (const floating_point< TypeT > &other) PHI_NOEXCEPT
 
template<typename TypeT , typename = detail::enable_safe_floating_point_conversion<TypeT, FloatT>>
PHI_ALWAYS_INLINE floating_pointoperator*= (const TypeT &other) PHI_NOEXCEPT
 
template<typename TypeT , typename = detail::fallback_safe_floating_point_conversion<TypeT, FloatT>>
floating_pointoperator*= (floating_point< TypeT >)=delete
 
template<typename TypeT , typename = detail::fallback_safe_floating_point_conversion<TypeT, FloatT>>
floating_pointoperator*= (TypeT)=delete
 
template<typename TypeT , typename = detail::enable_safe_floating_point_conversion<TypeT, FloatT>>
PHI_ALWAYS_INLINE floating_pointoperator/= (const floating_point< TypeT > &other) PHI_NOEXCEPT
 
template<typename TypeT , typename = detail::enable_safe_floating_point_conversion<TypeT, FloatT>>
PHI_ALWAYS_INLINE floating_pointoperator/= (const TypeT &other) PHI_NOEXCEPT
 
template<typename TypeT , typename = detail::fallback_safe_floating_point_conversion<TypeT, FloatT>>
floating_pointoperator/= (floating_point< TypeT >)=delete
 
template<typename TypeT , typename = detail::fallback_safe_floating_point_conversion<TypeT, FloatT>>
floating_pointoperator/= (TypeT)=delete
 
template<typename TypeT , typename = detail::enable_safe_floating_point_conversion<TypeT, FloatT>>
PHI_ALWAYS_INLINE floating_pointoperator%= (const floating_point< TypeT > &other) PHI_NOEXCEPT
 
template<typename TypeT , typename = detail::enable_safe_floating_point_conversion<TypeT, FloatT>>
PHI_ALWAYS_INLINE floating_pointoperator%= (const TypeT &other) PHI_NOEXCEPT
 
template<typename TypeT , typename = detail::fallback_safe_floating_point_conversion<TypeT, FloatT>>
floating_pointoperator%= (floating_point< TypeT >)=delete
 
template<typename TypeT , typename = detail::fallback_safe_floating_point_conversion<TypeT, FloatT>>
floating_pointoperator%= (TypeT)=delete
 

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