|
rippled
|
#include <RippleLineCache.h>


Classes | |
| struct | AccountKey |
Public Member Functions | |
| RippleLineCache (std::shared_ptr< ReadView const > const &l, beast::Journal j) | |
| ~RippleLineCache () | |
| std::shared_ptr< ReadView const > const & | getLedger () const |
| std::shared_ptr< std::vector< PathFindTrustLine > > | getRippleLines (AccountID const &accountID, LineDirection direction) |
| Find the trust lines associated with an account. | |
Static Private Member Functions | |
| static auto & | getCounter () noexcept |
Private Attributes | |
| std::mutex | mLock |
| xrpl::hardened_hash | hasher_ |
| std::shared_ptr< ReadView const > | ledger_ |
| beast::Journal | journal_ |
| hash_map< AccountKey, std::shared_ptr< std::vector< PathFindTrustLine > >, AccountKey::Hash > | lines_ |
| std::size_t | totalLineCount_ = 0 |
Definition at line 16 of file RippleLineCache.h.
|
explicit |
Definition at line 6 of file RippleLineCache.cpp.
| xrpl::RippleLineCache::~RippleLineCache | ( | ) |
Definition at line 12 of file RippleLineCache.cpp.
| std::shared_ptr< ReadView const > const & xrpl::RippleLineCache::getLedger | ( | ) | const |
Definition at line 23 of file RippleLineCache.h.
| std::shared_ptr< std::vector< PathFindTrustLine > > xrpl::RippleLineCache::getRippleLines | ( | AccountID const & | accountID, |
| LineDirection | direction | ||
| ) |
Find the trust lines associated with an account.
| accountID | The account |
| direction | Whether the account is an "outgoing" link on the path. "Outgoing" is defined as the source account, or an account found via a trustline that has rippling enabled on the @accountID's side. If an account is "outgoing", all trust lines will be returned. If an account is not "outgoing", then any trust lines that don't have rippling enabled are not usable, so only return trust lines that have rippling enabled on @accountID's side. |
Definition at line 19 of file RippleLineCache.cpp.
|
staticprivatenoexceptinherited |
Definition at line 109 of file CountedObject.h.
|
private |
Definition at line 44 of file RippleLineCache.h.
|
private |
Definition at line 46 of file RippleLineCache.h.
|
private |
Definition at line 47 of file RippleLineCache.h.
|
private |
Definition at line 49 of file RippleLineCache.h.
|
private |
Definition at line 96 of file RippleLineCache.h.
|
private |
Definition at line 97 of file RippleLineCache.h.