20 #ifndef RIPPLE_PROTOCOL_STPATHSET_H_INCLUDED
21 #define RIPPLE_PROTOCOL_STPATHSET_H_INCLUDED
23 #include <ripple/basics/CountedObject.h>
24 #include <ripple/json/json_value.h>
25 #include <ripple/protocol/SField.h>
26 #include <ripple/protocol/STBase.h>
27 #include <ripple/protocol/UintTypes.h>
70 bool forceCurrency =
false);
136 template <
typename... Args>
225 template <
typename... Args>
285 , mAccountID(account)
286 , mCurrencyID(currency)
288 , is_offer_(
isXRP(mAccountID))
293 if (forceCurrency || !
isXRP(currency))
308 , mAccountID(account)
309 , mCurrencyID(currency)
311 , is_offer_(
isXRP(mAccountID))
401 return mPath.empty();
410 template <
typename... Args>
414 mPath.emplace_back(std::forward<Args>(args)...);
420 return mPath.begin();
444 return mPath.front();
487 return value.begin();
505 return value.empty();
514 template <
typename... Args>
518 value.emplace_back(std::forward<Args>(args)...);
void push_back(STPathElement const &e)
STPathElement & operator=(STPathElement const &)=default
Tracks the number of instances of an object.
static std::size_t get_hash(STPathElement const &element)
bool operator==(const STPathElement &t) const
std::vector< STPathElement >::size_type size() const
std::vector< STPathElement > mPath
SerializedTypeID getSType() const override
Currency const & getCurrency() const
std::vector< STPathElement >::const_reference front() const
STBase * copy(std::size_t n, void *buf) const override
void emplace_back(Args &&... args)
std::vector< STPath >::const_reference operator[](std::vector< STPath >::size_type n) const
std::vector< STPath >::const_iterator end() const
bool isEquivalent(const STBase &t) const override
std::vector< STPath >::size_type size() const
std::vector< STPathElement >::const_reference back() const
void add(Serializer &s) const override
void emplace_back(Args &&... args)
bool isDefault() const override
bool isXRP(AccountID const &c)
bool operator!=(const STPathElement &t) const
STPathElement & operator[](int i)
AccountID const & getIssuerID() const
Json::Value getJson(JsonOptions) const
bool hasSeen(AccountID const &account, Currency const ¤cy, AccountID const &issuer) const
Use hash_* containers for keys that do not need a cryptographically secure hashing algorithm.
std::vector< STPathElement >::const_iterator begin() const
std::vector< STPath > value
A type which can be exported to a well known binary format.
std::vector< STPath >::const_iterator begin() const
std::vector< STPathElement >::const_iterator end() const
Json::Value getJson(JsonOptions) const override
bool operator==(STPath const &t) const
bool assembleAdd(STPath const &base, STPathElement const &tail)
AccountID const & noAccount()
A placeholder for empty accounts.
STBase * move(std::size_t n, void *buf) override
void push_back(STPath const &e)
AccountID const & getAccountID() const