20 #ifndef RIPPLE_PROTOCOL_STINTEGER_H_INCLUDED
21 #define RIPPLE_PROTOCOL_STINTEGER_H_INCLUDED
23 #include <ripple/protocol/STBase.h>
27 template <
typename Integer>
28 class STInteger :
public STBase
62 value() const noexcept;
67 operator Integer() const;
71 copy(
std::
size_t n,
void* buf) const override;
73 move(
std::
size_t n,
void* buf) override;
83 template <typename Integer>
88 template <
typename Integer>
94 template <
typename Integer>
98 return emplace(n, buf, *
this);
101 template <
typename Integer>
105 return emplace(n, buf, std::move(*
this));
108 template <
typename Integer>
112 assert(getFName().isBinary());
113 assert(getFName().fieldType == getSType());
117 template <
typename Integer>
124 template <
typename Integer>
129 return v && (value_ == v->value_);
132 template <
typename Integer>
140 template <
typename Integer>
147 template <
typename Integer>
154 template <
typename Integer>
void add(Serializer &s) const override
Json::Value getJson(JsonOptions) const override
bool isDefault() const override
value_type value() const noexcept
STBase * move(std::size_t n, void *buf) override
STInteger & operator=(value_type const &v)
Use hash_* containers for keys that do not need a cryptographically secure hashing algorithm.
STBase * copy(std::size_t n, void *buf) const override
A type which can be exported to a well known binary format.
std::string getText() const override
bool isEquivalent(const STBase &t) const override
SerializedTypeID getSType() const override