3#include <xrpl/basics/CountedObject.h>
4#include <xrpl/beast/utility/instrumentation.h>
5#include <xrpl/json/json_value.h>
6#include <xrpl/protocol/Asset.h>
7#include <xrpl/protocol/PathAsset.h>
8#include <xrpl/protocol/SField.h>
9#include <xrpl/protocol/STBase.h>
10#include <xrpl/protocol/UintTypes.h>
56 bool forceAsset =
false);
99 [[nodiscard]]
MPTID const&
137 template <
typename... Args>
146 [[nodiscard]] std::vector<STPathElement>::const_iterator
149 [[nodiscard]] std::vector<STPathElement>::const_iterator
208 [[nodiscard]] std::vector<STPath>::const_iterator
211 [[nodiscard]] std::vector<STPath>::const_iterator
223 template <
typename... Args>
272 XRPL_ASSERT(
issuerID_ !=
noAccount(),
"xrpl::STPathElement::STPathElement : issuer is set");
339 return (
type_ & pe) != 0u;
432 return path_.empty();
441template <
typename... Args>
448inline std::vector<STPathElement>::const_iterator
451 return path_.begin();
454inline std::vector<STPathElement>::const_iterator
475 return path_.front();
515inline std::vector<STPath>::const_iterator
521inline std::vector<STPath>::const_iterator
545template <
typename... Args>
constexpr bool holds() const
static std::size_t getHash(STPathElement const &element)
AccountID const & getAccountID() const
PathAsset const & getPathAsset() const
bool operator!=(STPathElement const &t) 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
bool isEquivalent(STBase const &t) const override
bool isDefault() const override
SerializedTypeID getSType() const override
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
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.
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.
Note, should be treated as flags that can be | and &.