TSDuck v3.40-4033
MPEG Transport Stream Toolkit
Loading...
Searching...
No Matches
ts::ieee_float< storage_bits, exponent_bits, mantissa_bits > Struct Template Reference

Definition of an IEEE floating point type with a given represenation. More...

#include <tsFloatUtils.h>

Public Types

using type = typename std::conditional< match_ieee_float< float, storage_bits, exponent_bits, mantissa_bits >(), float, typename std::conditional< match_ieee_float< double, storage_bits, exponent_bits, mantissa_bits >(), double, typename std::conditional< match_ieee_float< long double, storage_bits, exponent_bits, mantissa_bits >(), long double, void >::type >::type >::type
 The corresponding floating type.
 

Detailed Description

template<int storage_bits, int exponent_bits, int mantissa_bits>
struct ts::ieee_float< storage_bits, exponent_bits, mantissa_bits >

Definition of an IEEE floating point type with a given represenation.

Template Parameters
storage_bitsExpected size in bits of the type.
exponent_bitsExpected number of bits in the exponent.
mantissa_bitsExpected number of bits in the mantissa.

Member Typedef Documentation

◆ type

template<int storage_bits, int exponent_bits, int mantissa_bits>
using ts::ieee_float< storage_bits, exponent_bits, mantissa_bits >::type = typename std::conditional< match_ieee_float<float, storage_bits, exponent_bits, mantissa_bits>(), float, typename std::conditional< match_ieee_float<double, storage_bits, exponent_bits, mantissa_bits>(), double, typename std::conditional< match_ieee_float<long double, storage_bits, exponent_bits, mantissa_bits>(), long double, void >::type >::type >::type

The corresponding floating type.

When no predefined floating point type matches the requirement, the generated type is void.


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