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 <cctype>
#include <string_view>
#include <type_traits>
#include <regex>
#include <universal/number/support/decimal.hpp>
#include <universal/internal/blocktriple/manipulators.hpp>
#include <universal/number/cfloat/core.hpp>
#include <string>
#include <sstream>
#include <cstddef>
#include <cstdint>
#include <iostream>
#include <iomanip>
#include <typeinfo>
#include <universal/number/cfloat/cfloat_fwd.hpp>
#include <universal/utility/color_print.hpp>

Namespaces

namespace  sw
 required std libraries
namespace  sw::universal

Functions

template<unsigned nbits, unsigned es, typename bt, bool hasSubnormals, bool hasMaxExpValues, bool isSaturating>
std::string sw::universal::to_decimal_fixpnt_string (const cfloat< nbits, es, bt, hasSubnormals, hasMaxExpValues, isSaturating > &value, long long precision)
template<unsigned nbits, unsigned es, typename bt, bool hasSubnormals, bool hasMaxExpValues, bool isSaturating>
bool sw::universal::parse (const std::string &txt, cfloat< nbits, es, bt, hasSubnormals, hasMaxExpValues, isSaturating > &v)
 stream operators
template<unsigned nbits, unsigned es, typename bt, bool hasSubnormals, bool hasMaxExpValues, bool isSaturating>
std::string sw::universal::to_binary (const cfloat< nbits, es, bt, hasSubnormals, hasMaxExpValues, isSaturating > &number, bool nibbleMarker=false)
template<unsigned nbits, unsigned es, typename bt, bool hasSubnormals, bool hasMaxExpValues, bool isSaturating>
std::string sw::universal::to_native (const cfloat< nbits, es, bt, hasSubnormals, hasMaxExpValues, isSaturating > &number, bool nibbleMarker=false)
template<unsigned nbits, unsigned es, typename bt, bool hasSubnormals, bool hasMaxExpValues, bool isSaturating>
std::string sw::universal::to_triple (const cfloat< nbits, es, bt, hasSubnormals, hasMaxExpValues, isSaturating > &number, bool nibbleMarker=true)
template<typename CfloatType, std::enable_if_t< is_cfloat< CfloatType >, bool > = true>
std::string sw::universal::type_tag (CfloatType v={})
template<typename CfloatType, std::enable_if_t< is_cfloat< CfloatType >, bool > = true>
std::string sw::universal::type_field (const CfloatType &={})
template<typename CfloatType, std::enable_if_t< is_cfloat< CfloatType >, bool > = true>
void sw::universal::subnormals ()
template<typename CfloatType, std::enable_if_t< is_cfloat< CfloatType >, bool > = true>
std::string sw::universal::components (const CfloatType &v)
template<typename CfloatType, std::enable_if_t< is_cfloat< CfloatType >, bool > = true>
std::string sw::universal::to_hex (const CfloatType &v, bool nibbleMarker=false, bool hexPrefix=true)
template<typename CfloatType, std::enable_if_t< is_cfloat< CfloatType >, bool > = true>
std::string sw::universal::hex_print (const CfloatType &c)
template<typename CfloatType, std::enable_if_t< is_cfloat< CfloatType >, bool > = true>
std::string sw::universal::pretty_print (const CfloatType &r)
template<typename CfloatType, std::enable_if_t< is_cfloat< CfloatType >, bool > = true>
std::string sw::universal::info_print (const CfloatType &p, int printPrecision=17)
template<typename CfloatType, std::enable_if_t< is_cfloat< CfloatType >, bool > = true>
std::string sw::universal::color_print (const CfloatType &r, bool nibbleMarker=false)