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 <cstdint>
#include <cmath>
#include <type_traits>
#include <iomanip>
#include <typeinfo>
#include <universal/utility/color_print.hpp>

Namespaces

namespace  sw
 required std libraries
namespace  sw::universal

Functions

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