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
46 return emplace(n, buf, *
this);
52 return emplace(n, buf, std::move(*
this));
66 assert(fName->isBinary());
67 assert(fName->fieldType ==
getSType());
90 operator Integer()
const
105 return v && (
value_ == v->value_);
void add(Serializer &s) const override
STInteger(SField const &n, Integer v=0)
Json::Value getJson(JsonOptions) const override
STInteger & operator=(value_type const &v)
Use hash_* containers for keys that do not need a cryptographically secure hashing algorithm.
STBase * move(std::size_t n, void *buf) override
A type which can be exported to a well known binary format.
std::string getText() const override
value_type value() const noexcept
bool isEquivalent(const STBase &t) const override
SerializedTypeID getSType() const override
STBase * copy(std::size_t n, void *buf) const override
virtual bool isDefault() const override