3#include <xrpl/basics/CountedObject.h>
4#include <xrpl/beast/utility/Zero.h>
5#include <xrpl/protocol/STBase.h>
16 static_assert(Bits > 0,
"Number of bits must be positive");
47 template <
typename Tag>
94 return emplace(n, buf, *
this);
101 return emplace(n, buf, std::move(*
this));
144 return v && (value_ == v->
value_);
151 XRPL_ASSERT(getFName().isBinary(),
"xrpl::STBitString::add : field is binary");
152 XRPL_ASSERT(getFName().fieldType == getSType(),
"xrpl::STBitString::add : field type match");
157template <
typename Tag>
181 return value_ == beast::zero;
Tracks the number of instances of an object.
A type which can be exported to a well known binary format.
std::string getText() const override
bool isDefault() const override
void add(Serializer &s) const override
SerializedTypeID getSType() const override
STBase * copy(std::size_t n, void *buf) const override
STBase * move(std::size_t n, void *buf) override
void setValue(base_uint< Bits, Tag > const &v)
bool isEquivalent(STBase const &t) const override
base_uint< Bits > value_type
value_type const & value() const
int addBitString(base_uint< Bits, Tag > const &v)
Integers of any length that is a multiple of 32-bits.
Use hash_* containers for keys that do not need a cryptographically secure hashing algorithm.
std::string to_string(base_uint< Bits, Tag > const &a)