20 #ifndef RIPPLE_LEDGER_TESTS_PATHSET_H_INCLUDED
21 #define RIPPLE_LEDGER_TESTS_PATHSET_H_INCLUDED
23 #include <ripple/basics/Log.h>
24 #include <ripple/protocol/TxFlags.h>
36 Issue const& takerPays,
37 Issue const& takerGets)
42 if (sle->getType() == ltOFFER &&
43 sle->getFieldAmount(sfTakerPays).issue() == takerPays &&
44 sle->getFieldAmount(sfTakerGets).issue() == takerGets)
60 if (sle->getType() == ltOFFER &&
61 sle->getFieldAmount(sfTakerPays) == takerPays &&
62 sle->getFieldAmount(sfTakerGets) == takerGets)
77 return countOffers(env, account, takerPays, takerGets) > 0;
86 Issue const& takerPays,
87 Issue const& takerGets)
89 return countOffers(env, account, takerPays, takerGets) > 0;
105 template <
class First,
class... Rest>
106 explicit Path(First&& first, Rest&&... rest)
108 addHelper(std::forward<First>(first), std::forward<Rest>(rest)...);
120 template <
class First,
class... Rest>
122 addHelper(First&& first, Rest&&... rest);
128 path.emplace_back(pe);
146 path.emplace_back(account.id(), beast::zero, beast::zero);
150 template <
class First,
class... Rest>
155 if constexpr (
sizeof...(rest) > 0)
178 template <
class First,
class... Rest>
179 explicit PathSet(First&& first, Rest&&... rest)
181 addHelper(std::forward<First>(first), std::forward<Rest>(rest)...);
192 template <
class First,
class... Rest>
196 paths.emplace_back(std::move(first.path));
197 if constexpr (
sizeof...(rest) > 0)