DGtal  1.3.beta
Public Types
DGtal::NumberTraitsImpl< T, typename std::enable_if< std::is_floating_point< T >::value >::type > Struct Template Reference

Specialization of NumberTraitsImpl for fundamental floating-point types. More...

#include <DGtal/kernel/NumberTraits.h>

Inheritance diagram for DGtal::NumberTraitsImpl< T, typename std::enable_if< std::is_floating_point< T >::value >::type >:
[legend]

Public Types

using SignedVersion = T
 Alias to the signed version of a floating-point type (aka itself). More...
 
using UnsignedVersion = T
 Alias to the unsigned version of a floating-point type (aka itself). More...
 
- Public Types inherited from DGtal::details::NumberTraitsImplFundamental< T >
using IsBounded = typename BoolToTag< NL::is_bounded >::type
 Is the number bounded. More...
 
using IsUnsigned = typename BoolToTag<!NL::is_signed >::type
 Is the number unsigned. More...
 
using IsSigned = typename BoolToTag< NL::is_signed >::type
 Is the number signed. More...
 
using IsIntegral = typename BoolToTag< NL::is_integer >::type
 Is the number of integral type. More...
 
using IsSpecialized = TagTrue
 Is that a number type with specific traits. More...
 
using ReturnType = T
 Alias to the type that should be used as return type. More...
 
using ParamType = typename boost::call_traits< T >::param_type
 Defines a type that represents the "best" way to pass a parameter of type T to a function. More...
 

Additional Inherited Members

- Static Public Member Functions inherited from DGtal::details::NumberTraitsImplFundamental< T >
static constexpr ReturnType zero () noexcept
 Return the zero of this integer. More...
 
static constexpr ReturnType one () noexcept
 Return the one of this integer. More...
 
static constexpr ReturnType min () noexcept
 Return the minimum possible value for this type of number. More...
 
static constexpr ReturnType max () noexcept
 Return the maximum possible value for this type of number. More...
 
static constexpr unsigned int digits () noexcept
 Return the number of significant binary digits for this type of number. More...
 
static constexpr BoundEnum isBounded () noexcept
 Return the bounding type of the number. More...
 
static constexpr SignEnum isSigned () noexcept
 Return the sign type of the number. More...
 
static constexpr DGtal::int64_t castToInt64_t (const T &aT) noexcept
 Cast method to DGtal::int64_t (for I/O or board export uses only). More...
 
static constexpr DGtal::uint64_t castToUInt64_t (const T &aT) noexcept
 Cast method to DGtal::uint64_t (for I/O or board export uses only). More...
 
static constexpr double castToDouble (const T &aT) noexcept
 Cast method to double (for I/O or board export uses only). More...
 
static constexpr bool even (ParamType aT) noexcept
 Check the parity of a number. More...
 
static constexpr bool odd (ParamType aT) noexcept
 Check the parity of a number. More...
 
- Static Public Attributes inherited from DGtal::details::NumberTraitsImplFundamental< T >
static constexpr T ZERO = T(0)
 Constant Zero. More...
 
static constexpr T ONE = T(1)
 Constant One. More...
 

Detailed Description

template<typename T>
struct DGtal::NumberTraitsImpl< T, typename std::enable_if< std::is_floating_point< T >::value >::type >

Specialization of NumberTraitsImpl for fundamental floating-point types.

Definition at line 392 of file NumberTraits.h.

Member Typedef Documentation

◆ SignedVersion

template<typename T >
using DGtal::NumberTraitsImpl< T, typename std::enable_if< std::is_floating_point< T >::value >::type >::SignedVersion = T

Alias to the signed version of a floating-point type (aka itself).

Definition at line 395 of file NumberTraits.h.

◆ UnsignedVersion

template<typename T >
using DGtal::NumberTraitsImpl< T, typename std::enable_if< std::is_floating_point< T >::value >::type >::UnsignedVersion = T

Alias to the unsigned version of a floating-point type (aka itself).

Definition at line 396 of file NumberTraits.h.


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