31template <
class MantissaType,
class ExponentType>
class FixedPointDecimal;
32template<
class Mantissa,
class Exponent> std::string
toStr(
const FixedPointDecimal <Mantissa, Exponent>&);
43 MantissaType mantissa_;
52 typedef MantissaType FirstArgType;
69 ONIXS_B3_UMDF_MD_NODISCARD
70 std::string toString()
const
107 std::memcpy(addr, &mantissa_,
sizeof(mantissa_));
116 class NullMantissaType
137 return NullMantissaType();
#define ONIXS_B3_UMDF_MD_MESSAGING_NAMESPACE_END
#define ONIXS_B3_UMDF_MD_MESSAGING_NAMESPACE_BEGIN
IntegralConstant< Int8, -4 > Exponent
constexpr Exponent exponent() const noexcept
constexpr FixedPointDecimal(Mantissa mantissa) noexcept
Explicitly initializes the instance from the mantissa value.
void serialize(void *addr) const noexcept
Serialize to the given data buffer.
constexpr Mantissa mantissa() const noexcept
constexpr NullableFixedPointDecimal() noexcept
Default (zero) initialization.
constexpr NullableFixedPointDecimal(MantissaType mantissa) noexcept
Explicitly initializes the instance from the mantissa value.
static constexpr NullableFixedPointDecimal nullValue() noexcept
static constexpr NullMantissaType nullMantissa() noexcept
ptrdiff_t distance noexcept
void toStr(std::string &str, Char character)
Appends the character to the given std::string instance.