Pothos  0.3.3-g32d3017c
The Pothos dataflow programming software suite
 All Classes Namespaces Files Functions Variables Typedefs Friends Macros
Namespaces
QFormat.hpp File Reference
#include <Pothos/Config.hpp>
#include <type_traits>
#include <complex>
#include <cmath>

Go to the source code of this file.

Namespaces

 Pothos
 
 Pothos::Util
 

Functions

template<typename T , typename U >
std::enable_if
< std::is_floating_point< U >
::value, T >::type 
Pothos::Util::fromQ (const U &in, const int=0)
 
template<typename T , typename U >
std::enable_if
< std::is_integral< U >::value,
T >::type 
Pothos::Util::fromQ (const U &in, const int n=sizeof(U)*4)
 
template<typename T , typename U >
std::enable_if
< std::is_floating_point< U >
::value, T >::type 
Pothos::Util::fromQ (const std::complex< U > &in, const int=0)
 
template<typename T , typename U >
std::enable_if
< std::is_integral< U >::value,
T >::type 
Pothos::Util::fromQ (const std::complex< U > &in, const int n=sizeof(U)*4)
 
template<typename T , typename U >
std::enable_if
< std::is_floating_point< T >
::value, T >::type 
Pothos::Util::floatToQ (const U &in, const int=0)
 
template<typename T , typename U >
std::enable_if
< std::is_integral< T >::value,
T >::type 
Pothos::Util::floatToQ (const U &in, const int n=sizeof(T)*4)
 
template<typename T , typename U >
std::enable_if
< std::is_floating_point
< typename T::value_type >
::value, T >::type 
Pothos::Util::floatToQ (const std::complex< U > &in, const int=0)
 
template<typename T , typename U >
std::enable_if
< std::is_integral< typename
T::value_type >::value, T >
::type 
Pothos::Util::floatToQ (const std::complex< U > &in, const int n=sizeof(typename T::value_type)*4)
 

Detailed Description

Templated fixed point utilities and Q-format conversions.