|
DGtal 2.1.0
|
Specialization of NumberTraitsImpl for fundamental floating-point types. More...
#include <DGtal/kernel/NumberTraits.h>
Public Types | |
| using | SignedVersion = T |
| Alias to the signed version of a floating-point type (aka itself). | |
| using | UnsignedVersion = T |
| Alias to the unsigned version of a floating-point type (aka itself). | |
Public Types inherited from DGtal::details::NumberTraitsImplFundamental< T > | |
| using | IsBounded = typename BoolToTag< NL::is_bounded >::type |
| Is the number bounded. | |
| using | IsUnsigned = typename BoolToTag<!NL::is_signed >::type |
| Is the number unsigned. | |
| using | IsSigned = typename BoolToTag< NL::is_signed >::type |
| Is the number signed. | |
| using | IsIntegral = typename BoolToTag< NL::is_integer >::type |
| Is the number of integral type. | |
| using | IsSpecialized = TagTrue |
| Is that a number type with specific traits. | |
| using | ReturnType = T |
| Alias to the type that should be used as return type. | |
| 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. | |
Additional Inherited Members | |
Static Public Member Functions inherited from DGtal::details::NumberTraitsImplFundamental< T > | |
| static constexpr ReturnType | zero () noexcept |
| Return the zero of this integer. | |
| static constexpr ReturnType | one () noexcept |
| Return the one of this integer. | |
| static constexpr ReturnType | min () noexcept |
| Return the minimum possible value for this type of number. | |
| static constexpr ReturnType | max () noexcept |
| Return the maximum possible value for this type of number. | |
| static constexpr unsigned int | digits () noexcept |
| Return the number of significant binary digits for this type of number. | |
| static constexpr BoundEnum | isBounded () noexcept |
| Return the bounding type of the number. | |
| static constexpr SignEnum | isSigned () noexcept |
| Return the sign type of the number. | |
| 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). | |
| 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). | |
| static constexpr double | castToDouble (const T &aT) noexcept |
| Cast method to double (for I/O or board export uses only). | |
| static constexpr bool | even (ParamType aT) noexcept |
| Check the parity of a number. | |
| static constexpr bool | odd (ParamType aT) noexcept |
| Check the parity of a number. | |
Static Public Attributes inherited from DGtal::details::NumberTraitsImplFundamental< T > | |
| static constexpr T | ZERO = T(0) |
| Constant Zero. | |
| static constexpr T | ONE = T(1) |
| Constant One. | |
Specialization of NumberTraitsImpl for fundamental floating-point types.
Definition at line 392 of file NumberTraits.h.
| 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.
| 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.