3#include <xrpl/basics/CountedObject.h>
4#include <xrpl/basics/UnorderedContainers.h>
5#include <xrpl/beast/utility/instrumentation.h>
6#include <xrpl/json/json_value.h>
7#include <xrpl/protocol/AccountID.h>
8#include <xrpl/protocol/PathAsset.h>
9#include <xrpl/protocol/SField.h>
10#include <xrpl/protocol/STBase.h>
11#include <xrpl/protocol/Serializer.h>
12#include <xrpl/protocol/UintTypes.h>
60 bool forceAsset =
false);
103 [[nodiscard]]
MPTID const&
141 template <
typename... Args>
150 [[nodiscard]] std::vector<STPathElement>::const_iterator
153 [[nodiscard]] std::vector<STPathElement>::const_iterator
175template <
class Hasher>
179 for (
auto const& e : p)
220 [[nodiscard]] std::vector<STPath>::const_iterator
223 [[nodiscard]] std::vector<STPath>::const_iterator
235 template <
typename... Args>
290 XRPL_ASSERT(
issuerID_ !=
noAccount(),
"xrpl::STPathElement::STPathElement : issuer is set");
360 return (
type_ & pe) != 0u;
447 return path_.empty();
456template <
typename... Args>
463inline std::vector<STPathElement>::const_iterator
466 return path_.begin();
469inline std::vector<STPathElement>::const_iterator
490 return path_.front();
524inline std::vector<STPath>::const_iterator
530inline std::vector<STPath>::const_iterator
555template <
typename... Args>
constexpr bool holds() const
AccountID const & getAccountID() const
PathAsset const & getPathAsset() const
MPTID const & getMPTID() const
STPathElement(STPathElement const &)=default
Currency const & getCurrency() const
bool operator==(STPathElement const &t) const
STPathElement & operator=(STPathElement const &)=default
AccountID const & getIssuerID() const
bool isType(Type const &pe) const
void add(Serializer &s) const override
std::vector< STPath >::const_iterator begin() const
bool assembleAdd(STPath const &base, STPathElement const &tail)
void emplaceBack(Args &&... args)
std::vector< STPath >::const_reference operator[](std::vector< STPath >::size_type n) const
STBase * copy(std::size_t n, void *buf) const override
std::vector< STPath >::size_type size() const
json::Value getJson(JsonOptions) const override
void pushBack(STPath const &e)
std::vector< STPath > value_
STBase * move(std::size_t n, void *buf) override
std::vector< STPath >::const_iterator end() const
xrpl::hardened_hash_set< STPath > seenHashes_
bool isEquivalent(STBase const &t) const override
bool isDefault() const override
SerializedTypeID getSType() const override
bool contains(STPath const &path) const
std::vector< STPathElement > path_
std::vector< STPathElement >::size_type size() const
bool hasSeen(AccountID const &account, PathAsset const &asset, AccountID const &issuer) const
bool operator==(STPath const &t) const
STPathElement & operator[](int i)
void pushBack(STPathElement const &e)
std::vector< STPathElement >::const_iterator end() const
std::vector< STPathElement >::const_reference front() const
void emplaceBack(Args &&... args)
std::vector< STPathElement >::const_reference back() const
std::vector< STPathElement >::const_iterator begin() const
json::Value getJson(JsonOptions) const
void hash_append(Hasher &h, T const &t) noexcept
Logically concatenate input data to a Hasher.
Use hash_* containers for keys that do not need a cryptographically secure hashing algorithm.
bool isXRP(AccountID const &c)
BaseUInt< 160, detail::CurrencyTag > Currency
Currency is a hash representing a specific currency.
std::unordered_set< Value, Hash, Pred, Allocator > hardened_hash_set
BaseUInt< 192 > MPTID
MPTID is a 192-bit value representing MPT Issuance ID, which is a concatenation of a 32-bit sequence ...
BaseUInt< 160, detail::AccountIDTag > AccountID
A 160-bit unsigned that uniquely identifies an account.
AccountID const & noAccount()
A placeholder for empty accounts.
void hash_append(Hasher &h, Slice const &v)
Note, should be treated as flags that can be | and &.