3#include <xrpl/basics/CountedObject.h>
4#include <xrpl/protocol/STBase.h>
8template <
typename Integer>
43 value() const noexcept;
48 operator Integer() const;
52 copy(
std::
size_t n,
void* buf) const override;
54 move(
std::
size_t n,
void* buf) override;
66template <typename Integer>
71template <
typename Integer>
76template <
typename Integer>
80 return emplace(n, buf, *
this);
83template <
typename Integer>
87 return emplace(n, buf, std::move(*
this));
90template <
typename Integer>
94 XRPL_ASSERT(getFName().isBinary(),
"xrpl::STInteger::add : field is binary");
95 XRPL_ASSERT(getFName().fieldType == getSType(),
"xrpl::STInteger::add : field type match");
99template <
typename Integer>
106template <
typename Integer>
111 return v && (value_ == v->
value_);
114template <
typename Integer>
122template <
typename Integer>
129template <
typename Integer>
136template <
typename Integer>
Tracks the number of instances of an object.
A type which can be exported to a well known binary format.
value_type value() const noexcept
void add(Serializer &s) const override
std::string getText() const override
STBase * move(std::size_t n, void *buf) override
SerializedTypeID getSType() const override
STInteger(SerialIter &sit, SField const &name)
STInteger & operator=(value_type const &v)
STBase * copy(std::size_t n, void *buf) const override
friend class xrpl::detail::STVar
Json::Value getJson(JsonOptions) const override
bool isEquivalent(STBase const &t) const override
bool isDefault() const override
Use hash_* containers for keys that do not need a cryptographically secure hashing algorithm.
Note, should be treated as flags that can be | and &.