1#ifndef XRPL_PROTOCOL_STINTEGER_H_INCLUDED
2#define XRPL_PROTOCOL_STINTEGER_H_INCLUDED
4#include <xrpl/basics/CountedObject.h>
5#include <xrpl/protocol/STBase.h>
9template <
typename Integer>
44 value() const noexcept;
49 operator Integer() const;
53 copy(
std::
size_t n,
void* buf) const override;
55 move(
std::
size_t n,
void* buf) override;
67template <typename Integer>
72template <
typename Integer>
78template <
typename Integer>
82 return emplace(n, buf, *
this);
85template <
typename Integer>
89 return emplace(n, buf, std::move(*
this));
92template <
typename Integer>
97 getFName().isBinary(),
"ripple::STInteger::add : field is binary");
99 getFName().fieldType == getSType(),
100 "ripple::STInteger::add : field type match");
104template <
typename Integer>
111template <
typename Integer>
116 return v && (value_ == v->
value_);
119template <
typename Integer>
127template <
typename Integer>
134template <
typename Integer>
141template <
typename Integer>
Tracks the number of instances of an object.
A type which can be exported to a well known binary format.
void add(Serializer &s) const override
STInteger & operator=(value_type const &v)
std::string getText() const override
STBase * move(std::size_t n, void *buf) override
value_type value() const noexcept
Json::Value getJson(JsonOptions) const override
STBase * copy(std::size_t n, void *buf) const override
SerializedTypeID getSType() const override
friend class ripple::detail::STVar
bool isEquivalent(STBase const &t) const override
STInteger(SerialIter &sit, SField const &name)
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 &.