3#include <xrpl/basics/contract.h>
4#include <xrpl/protocol/SField.h>
5#include <xrpl/protocol/Serializer.h>
38 [[nodiscard]]
constexpr explicit
43 [[nodiscard]]
constexpr explicit
44 operator bool() const noexcept
48 [[nodiscard]]
constexpr auto friend
50 [[nodiscard]]
constexpr auto friend
57 return {lh.value | rh.value};
64 return {lh.value & rh.value};
77 requires requires(T
const& t) {
156 [[nodiscard]]
virtual bool
159 [[nodiscard]]
virtual bool
168 [[nodiscard]]
SField const&
197 D* ptr =
dynamic_cast<D*
>(
this);
204[[nodiscard]] D
const&
207 D
const* ptr =
dynamic_cast<D const*
>(
this);
A type which can be exported to a well known binary format.
SField const & getFName() const
static STBase * emplace(std::size_t n, void *buf, T &&val)
virtual bool isEquivalent(STBase const &t) const
virtual std::string getFullText() const
STBase & operator=(STBase const &t)
bool operator!=(STBase const &t) const
D const & downcast() const
virtual STBase * copy(std::size_t n, void *buf) const
virtual SerializedTypeID getSType() const
void setFName(SField const &n)
A STBase is a field.
virtual bool isDefault() const
bool operator==(STBase const &t) const
virtual json::Value getJson(JsonOptions=JsonOptions::Values::None) const
virtual STBase * move(std::size_t n, void *buf)
virtual std::string getText() const
STBase(STBase const &)=default
void addFieldID(Serializer &s) const
virtual ~STBase()=default
virtual void add(Serializer &s) const
Use hash_* containers for keys that do not need a cryptographically secure hashing algorithm.
std::ostream & operator<<(std::ostream &out, BaseUInt< Bits, Tag > const &u)
json::Value toJson(Asset const &asset)
XRPL_NO_SANITIZE_ADDRESS void Throw(Args &&... args)
Note, should be treated as flags that can be | and &.
constexpr JsonOptions friend operator|(JsonOptions lh, JsonOptions rh) noexcept
Returns JsonOptions union of lh and rh.
constexpr auto friend operator!=(JsonOptions lh, JsonOptions rh) noexcept -> bool=default
constexpr JsonOptions friend operator&(JsonOptions lh, JsonOptions rh) noexcept
Returns JsonOptions intersection of lh and rh.
constexpr JsonOptions(underlying_t v) noexcept
constexpr JsonOptions friend operator~(JsonOptions v) noexcept
Returns JsonOptions binary negation, can be used with & (above) for set difference e....
constexpr JsonOptions(Values v) noexcept
constexpr auto friend operator==(JsonOptions lh, JsonOptions rh) noexcept -> bool=default
unsigned int underlying_t