|
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 |
| ripple::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 17 of file RippleLineCache.h.
|
explicit |
Definition at line 6 of file RippleLineCache.cpp.
| ripple::RippleLineCache::~RippleLineCache | ( | ) |
Definition at line 14 of file RippleLineCache.cpp.
| std::shared_ptr< ReadView const > const & ripple::RippleLineCache::getLedger | ( | ) | const |
Definition at line 26 of file RippleLineCache.h.
| std::shared_ptr< std::vector< PathFindTrustLine > > ripple::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 22 of file RippleLineCache.cpp.
|
staticprivatenoexceptinherited |
Definition at line 110 of file CountedObject.h.
|
private |
Definition at line 47 of file RippleLineCache.h.
|
private |
Definition at line 49 of file RippleLineCache.h.
|
private |
Definition at line 50 of file RippleLineCache.h.
|
private |
Definition at line 52 of file RippleLineCache.h.
|
private |
Definition at line 107 of file RippleLineCache.h.
|
private |
Definition at line 108 of file RippleLineCache.h.