20 #ifndef RIPPLE_PROTOCOL_STACCOUNT_H_INCLUDED
21 #define RIPPLE_PROTOCOL_STACCOUNT_H_INCLUDED
23 #include <ripple/protocol/AccountID.h>
24 #include <ripple/protocol/STBase.h>
57 return emplace(n, buf, std::move(*
this));
85 auto const*
const tPtr =
dynamic_cast<STAccount const*
>(&t);
86 return tPtr && (
default_ == tPtr->default_) && (
value_ == tPtr->value_);
SerializedTypeID getSType() const override
Like std::vector<char> but better.
STBase * move(std::size_t n, void *buf) override
bool isDefault() const override
bool isEquivalent(const STBase &t) const override
void setValue(AccountID const &v)
const SerializedTypeID fieldType
static STBase * emplace(std::size_t n, void *buf, T &&val)
static constexpr std::size_t bytes
void add(Serializer &s) const override
AccountID value() const noexcept
STBase * copy(std::size_t n, void *buf) const override
Use hash_* containers for keys that do not need a cryptographically secure hashing algorithm.
std::string getText() const override
A type which can be exported to a well known binary format.
int addVL(Blob const &vector)
STAccount & operator=(AccountID const &value)
base_uint< 160, detail::AccountIDTag > AccountID
A 160-bit unsigned that uniquely identifies an account.