20#ifndef RIPPLE_PROTOCOL_STINTEGER_H_INCLUDED
21#define RIPPLE_PROTOCOL_STINTEGER_H_INCLUDED
23#include <xrpl/basics/CountedObject.h>
24#include <xrpl/protocol/STBase.h>
28template <
typename Integer>
63 value() const noexcept;
68 operator Integer() const;
72 copy(
std::
size_t n,
void* buf) const override;
74 move(
std::
size_t n,
void* buf) override;
84template <typename Integer>
89template <
typename Integer>
95template <
typename Integer>
99 return emplace(n, buf, *
this);
102template <
typename Integer>
106 return emplace(n, buf, std::move(*
this));
109template <
typename Integer>
114 getFName().isBinary(),
"ripple::STInteger::add : field is binary");
116 getFName().fieldType == getSType(),
117 "ripple::STInteger::add : field type match");
121template <
typename Integer>
128template <
typename Integer>
133 return v && (value_ == v->
value_);
136template <
typename Integer>
144template <
typename Integer>
151template <
typename Integer>
158template <
typename Integer>
Tracks the number of instances of an object.
A type which can be exported to a well known binary format.
Json::Value getJson(JsonOptions) const override
void add(Serializer &s) const override
STInteger & operator=(value_type const &v)
STBase * move(std::size_t n, void *buf) override
std::string getText() const override
value_type value() const noexcept
STBase * copy(std::size_t n, void *buf) const override
friend class ripple::detail::STVar
SerializedTypeID getSType() const override
bool isEquivalent(const STBase &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 &.