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 <string>
#include <sstream>
#include <iomanip>
#include <typeinfo>
#include <universal/number/dbns/core.hpp>
#include <universal/utility/color_print.hpp>

Namespaces

namespace  sw
 required std libraries
namespace  sw::universal

Functions

template<typename DbnsType, std::enable_if_t< is_dbns< DbnsType >, bool > = true>
std::string sw::universal::type_tag (const DbnsType &={})
template<typename DbnsType, std::enable_if_t< is_dbns< DbnsType >, bool > = true>
std::string sw::universal::type_field (const DbnsType &={})
template<typename DbnsType, std::enable_if_t< is_dbns< DbnsType >, bool > = true>
std::string sw::universal::range (const DbnsType &={})
template<typename DbnsType, std::enable_if_t< is_dbns< DbnsType >, bool > = true>
constexpr bool sw::universal::isInRange (double v) noexcept
template<unsigned nbits, unsigned fbbits, typename bt, auto... xtra>
std::string sw::universal::to_triple (const dbns< nbits, fbbits, bt, xtra... > &v, bool nibbleMarker=false)
template<unsigned nbits, unsigned fbbits, typename bt, auto... xtra>
std::string sw::universal::components (const dbns< nbits, fbbits, bt, xtra... > &v)
template<typename DbnsType, std::enable_if_t< is_dbns< DbnsType >, bool > = true>
std::string sw::universal::to_hex (const DbnsType &v, bool nibbleMarker=false, bool hexPrefix=true)
template<typename DbnsType, std::enable_if_t< is_dbns< DbnsType >, bool > = true>
std::string sw::universal::pretty_print (const DbnsType &l, bool nibbleMarker=false)
template<typename DbnsType, std::enable_if_t< is_dbns< DbnsType >, bool > = true>
std::string sw::universal::info_print (const DbnsType &l, int printPrecision=17)
template<typename DbnsType, std::enable_if_t< is_dbns< DbnsType >, bool > = true>
std::string sw::universal::color_print (const DbnsType &l, bool nibbleMarker=false)
template<unsigned nbits, unsigned fbbits, typename bt, auto... xtra>
std::string sw::universal::to_binary (const dbns< nbits, fbbits, bt, xtra... > &number, bool nibbleMarker=false)