43 MantissaType mantissa_;
52 typedef MantissaType FirstArgType;
65 Size =
sizeof(Mantissa)
69 ONIXS_B3_UMDF_MD_NODISCARD
105 std::memcpy(addr, &mantissa_,
sizeof(mantissa_));
114 class NullMantissaType
135 return NullMantissaType();
146 bool isNull()
const {
return nullMantissa() == this->mantissa(); }
ONIXS_B3_UMDF_MD_NODISCARD std::string toString() const
ExponentType Exponent
Exponent component type.
FixedPointDecimal()
Default (zero) initialization.
#define ONIXS_B3_UMDF_MD_NOTHROW
#define ONIXS_B3_UMDF_MD_CONSTEXPR
NullableFixedPointDecimal()
Default (zero) initialization.
NullableFixedPointDecimal(MantissaType mantissa)
Explicitly initializes the instance from the mantissa value.
static NullableFixedPointDecimal nullValue()
Mantissa mantissa() const
void serialize(void *addr) const
Serialize to the given data buffer.
std::string toStr(const FixedPointDecimal< Mantissa, Exponent > &)
Serializes a fixed-point decimal into a string.
#define ONIXS_B3_UMDF_MD_MESSAGING_NAMESPACE_END
FixedPointDecimal(Mantissa mantissa)
Explicitly initializes the instance from the mantissa value.
static NullMantissaType nullMantissa()
Exponent exponent() const
A nullable real number with a constant exponent.
#define ONIXS_B3_UMDF_MD_MESSAGING_NAMESPACE_BEGIN
MantissaType Mantissa
Mantissa component type.