rippled
|
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. More... | |
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 36 of file RippleLineCache.h.
|
explicit |
Definition at line 26 of file RippleLineCache.cpp.
ripple::RippleLineCache::~RippleLineCache | ( | ) |
Definition at line 34 of file RippleLineCache.cpp.
std::shared_ptr<ReadView const> const& ripple::RippleLineCache::getLedger | ( | ) | const |
Definition at line 45 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 42 of file RippleLineCache.cpp.
|
staticprivatenoexceptinherited |
Definition at line 128 of file CountedObject.h.
|
private |
Definition at line 66 of file RippleLineCache.h.
|
private |
Definition at line 68 of file RippleLineCache.h.
|
private |
Definition at line 69 of file RippleLineCache.h.
|
private |
Definition at line 71 of file RippleLineCache.h.
|
private |
Definition at line 126 of file RippleLineCache.h.
|
private |
Definition at line 127 of file RippleLineCache.h.