20 #ifndef RIPPLE_APP_PATHS_RIPPLELINECACHE_H_INCLUDED
21 #define RIPPLE_APP_PATHS_RIPPLELINECACHE_H_INCLUDED
23 #include <ripple/app/ledger/Ledger.h>
24 #include <ripple/app/paths/RippleState.h>
25 #include <ripple/basics/hardened_hash.h>
83 explicit Hash() =
default;
88 return key.get_hash();
std::shared_ptr< ReadView const > mLedger
AccountKey(AccountID const &account, std::size_t hash)
std::size_t operator()(AccountKey const &key) const noexcept
RippleLineCache(std::shared_ptr< ReadView const > const &l)
bool operator==(AccountKey const &lhs) const
Seed functor once per construction.
std::size_t get_hash() const
AccountKey & operator=(AccountKey const &other)=default
Use hash_* containers for keys that do not need a cryptographically secure hashing algorithm.
std::vector< RippleState::pointer > const & getRippleLines(AccountID const &accountID)
hash_map< AccountKey, std::vector< RippleState::pointer >, AccountKey::Hash > lines_
ripple::hardened_hash hasher_
std::shared_ptr< ReadView const > const & getLedger() const