20#ifndef RIPPLE_APP_PATHS_RIPPLELINECACHE_H_INCLUDED
21#define RIPPLE_APP_PATHS_RIPPLELINECACHE_H_INCLUDED
23#include <xrpld/app/ledger/Ledger.h>
24#include <xrpld/app/paths/TrustLine.h>
26#include <xrpl/basics/CountedObject.h>
27#include <xrpl/basics/hardened_hash.h>
112 return key.get_hash();
A generic endpoint for log messages.
Tracks the number of instances of an object.
std::shared_ptr< ReadView const > ledger_
std::shared_ptr< ReadView const > const & getLedger() const
std::size_t totalLineCount_
ripple::hardened_hash hasher_
hash_map< AccountKey, std::shared_ptr< std::vector< PathFindTrustLine > >, AccountKey::Hash > lines_
std::shared_ptr< std::vector< PathFindTrustLine > > getRippleLines(AccountID const &accountID, LineDirection direction)
Find the trust lines associated with an account.
Seed functor once per construction.
Use hash_* containers for keys that do not need a cryptographically secure hashing algorithm.
LineDirection
Describes how an account was found in a path, and how to find the next set of paths.
std::size_t operator()(AccountKey const &key) const noexcept
AccountKey(AccountKey const &other)=default
AccountKey(AccountID const &account, LineDirection direction, std::size_t hash)
std::size_t get_hash() const
AccountKey & operator=(AccountKey const &other)=default
bool operator==(AccountKey const &lhs) const