20#include <xrpl/protocol/STNumber.h>
22#include <xrpl/beast/utility/instrumentation.h>
23#include <xrpl/protocol/SField.h>
28 :
STBase(field), value_(value)
36 auto mantissa = sit.
geti64();
37 auto exponent = sit.
geti32();
57 getFName().isBinary(),
"ripple::STNumber::add : field is binary");
60 "ripple::STNumber::add : field type match");
86 return emplace(n, buf, std::move(*
this));
94 "ripple::STNumber::isEquivalent : field type match");
constexpr int exponent() const noexcept
constexpr rep mantissa() const noexcept
A type which can be exported to a well known binary format.
virtual SerializedTypeID getSType() const
SField const & getFName() const
static STBase * emplace(std::size_t n, void *buf, T &&val)
SerializedTypeID getSType() const override
bool isDefault() const override
void add(Serializer &s) const override
std::string getText() const override
void setValue(Number const &v)
STBase * move(std::size_t n, void *buf) override
Number const & value() const
STBase * copy(std::size_t n, void *buf) const override
bool isEquivalent(STBase const &t) const override
Use hash_* containers for keys that do not need a cryptographically secure hashing algorithm.
std::ostream & operator<<(std::ostream &out, base_uint< Bits, Tag > const &u)
std::string to_string(base_uint< Bits, Tag > const &a)