20 #ifndef RIPPLE_LEDGER_RAWSTATETABLE_H_INCLUDED
21 #define RIPPLE_LEDGER_RAWSTATETABLE_H_INCLUDED
23 #include <ripple/ledger/RawView.h>
24 #include <ripple/ledger/ReadView.h>
26 #include <boost/container/pmr/monotonic_buffer_resource.hpp>
27 #include <boost/container/pmr/polymorphic_allocator.hpp>
47 boost::container::pmr::monotonic_buffer_resource>(
53 boost::container::pmr::monotonic_buffer_resource>(
66 apply(RawView& to)
const;
69 exists(ReadView
const& base, Keylet
const& k)
const;
87 read(ReadView
const& base, Keylet
const& k)
const;
96 slesEnd(ReadView
const& base)
const;
108 class sles_iter_impl;
128 boost::container::pmr::polymorphic_allocator<
XRPAmount dropsDestroyed_
RawStateTable & operator=(RawStateTable &&)=delete
std::optional< key_type > succ(ReadView const &base, key_type const &key, std::optional< key_type > const &last) const
sleAction(Action action_, std::shared_ptr< SLE > const &sle_)
constexpr auto kilobytes(T value) noexcept
std::shared_ptr< SLE const > read(ReadView const &base, Keylet const &k) const
std::map< key_type, sleAction, std::less< key_type >, boost::container::pmr::polymorphic_allocator< std::pair< const key_type, sleAction > >> items_t
RawStateTable(RawStateTable const &rhs)
std::unique_ptr< ReadView::sles_type::iter_base > slesUpperBound(ReadView const &base, uint256 const &key) const
std::unique_ptr< ReadView::sles_type::iter_base > slesBegin(ReadView const &base) const
void erase(std::shared_ptr< SLE > const &sle)
bool exists(ReadView const &base, Keylet const &k) const
static constexpr size_t initialBufferSize
Use hash_* containers for keys that do not need a cryptographically secure hashing algorithm.
void apply(RawView &to) const
void destroyXRP(XRPAmount const &fee)
std::unique_ptr< boost::container::pmr::monotonic_buffer_resource > monotonic_resource_
void insert(std::shared_ptr< SLE > const &sle)
void replace(std::shared_ptr< SLE > const &sle)
ReadView::key_type key_type
std::unique_ptr< ReadView::sles_type::iter_base > slesEnd(ReadView const &base) const
std::shared_ptr< SLE > sle