20 #include <ripple/ledger/Directory.h>
27 : view_(&view), root_(key), sle_(view_->read(root_))
60 if (
view_ ==
nullptr || other.
view_ ==
nullptr)
70 assert(
index_ != beast::zero);
79 assert(
index_ != beast::zero);
93 assert(
index_ != beast::zero);
const SF_UINT64 sfIndexNext
A pair of SHAMap key and LedgerEntryType.
const_iterator begin() const
std::shared_ptr< SLE const > sle_
std::optional< value_type > cache_
Keylet child(uint256 const &key) noexcept
Any item that can be in an owner dir.
Dir::const_iterator const_iterator
const SF_VECTOR256 sfIndexes
Keylet page(uint256 const &key, std::uint64_t index) noexcept
A page in a directory.
STVector256 const * indexes_
std::shared_ptr< SLE const > sle_
virtual std::shared_ptr< SLE const > read(Keylet const &k) const =0
Return the state item associated with a key.
Use hash_* containers for keys that do not need a cryptographically secure hashing algorithm.
const_iterator & operator++()
STVector256 const * indexes_
Dir(ReadView const &, Keylet const &)
const_iterator & next_page()
const_iterator end() const
value_type const & reference
bool operator==(const_iterator const &other) const
reference operator*() const
std::vector< uint256 >::const_iterator it_