Universal Numbers Library C++ API
sw::universal -- header-only custom arithmetic types (posit, cfloat, lns, fixpnt, dd/qd, and more)
Loading...
Searching...
No Matches
manipulators.hpp File Reference
#include <sstream>
#include <string>
#include <cstddef>
#include <universal/number/takum/core.hpp>
#include <cstdint>
#include <type_traits>
#include <iomanip>
#include <typeinfo>
#include <universal/utility/color_print.hpp>

Namespaces

namespace  sw
 required std libraries
namespace  sw::universal

Functions

template<unsigned nbits, unsigned rbits, typename bt>
std::string sw::universal::to_native (const takum< nbits, rbits, bt > &number, bool nibbleMarker=false)
template<unsigned nbits, unsigned rbits, typename bt>
std::string sw::universal::to_native (const takum_log< nbits, rbits, bt > &number, bool nibbleMarker=false)
template<unsigned nbits, unsigned rbits, typename bt>
std::string sw::universal::to_binary (const takum< nbits, rbits, bt > &number, bool nibbleMarker=false)
template<unsigned nbits, unsigned rbits, typename bt>
std::string sw::universal::to_binary (const takum_log< nbits, rbits, bt > &number, bool nibbleMarker=false)
template<typename TakumType, std::enable_if_t< is_any_takum< TakumType >, bool > = true>
std::string sw::universal::type_tag (const TakumType &={})
template<typename TakumType, std::enable_if_t< is_any_takum< TakumType >, bool > = true>
std::string sw::universal::range (const TakumType &={})
template<typename TakumType, std::enable_if_t< is_any_takum< TakumType >, bool > = true>
bool sw::universal::isInRange (double v)
template<typename TakumType, std::enable_if_t< is_any_takum< TakumType >, bool > = true>
std::string sw::universal::components (const TakumType &v)
template<typename TakumType, std::enable_if_t< is_any_takum< TakumType >, bool > = true>
std::string sw::universal::to_hex (const TakumType &v, bool nibbleMarker=false, bool hexPrefix=true)
template<typename TakumType, std::enable_if_t< is_any_takum< TakumType >, bool > = true>
std::string sw::universal::hex_print (const TakumType &c)
template<typename TakumType, std::enable_if_t< is_any_takum< TakumType >, bool > = true>
std::string sw::universal::pretty_print (const TakumType &number, bool nibbleMarker=false)
template<typename TakumType, std::enable_if_t< is_any_takum< TakumType >, bool > = true>
std::string sw::universal::info_print (const TakumType &p, int printPrecision=17)
template<typename TakumType, std::enable_if_t< is_any_takum< TakumType >, bool > = true>
std::string sw::universal::color_print (const TakumType &number, bool nibbleMarker=false)