3#include <xrpl/ledger/ApplyView.h>
4#include <xrpl/ledger/ReadView.h>
5#include <xrpl/ledger/detail/ApplyStateTable.h>
6#include <xrpl/protocol/XRPAmount.h>
26 open()
const override;
31 [[nodiscard]]
Fees const&
32 fees()
const override;
34 [[nodiscard]]
Rules const&
35 rules()
const override;
70 flags()
const override;
std::pair< std::shared_ptr< STTx const >, std::shared_ptr< STObject const > > tx_type
Rules controlling protocol behavior.
std::shared_ptr< STLedgerEntry > const & ref
std::shared_ptr< STLedgerEntry > pointer
std::shared_ptr< STLedgerEntry const > const_pointer
void rawDestroyXRP(XRPAmount const &feeDrops) override
Destroy XRP.
void insert(SLE::ref sle) override
Insert a new state SLE.
ApplyFlags flags() const override
Returns the tx apply flags.
std::optional< key_type > succ(key_type const &key, std::optional< key_type > const &last=std::nullopt) const override
Return the key of the next state item.
std::unique_ptr< SlesType::iter_base > slesEnd() const override
SLE::pointer peek(Keylet const &k) override
Prepare to modify the SLE associated with key.
void rawInsert(SLE::ref sle) override
Unconditionally insert a state item.
void update(SLE::ref sle) override
Indicate changes to a peeked SLE.
std::unique_ptr< TxsType::iter_base > txsBegin() const override
bool open() const override
Returns true if this reflects an open ledger.
void rawReplace(SLE::ref sle) override
Unconditionally replace a state item.
LedgerHeader const & header() const override
Returns information about the ledger.
ApplyViewBase & operator=(ApplyViewBase const &)=delete
SLE::const_pointer read(Keylet const &k) const override
Return the state item associated with a key.
ApplyViewBase(ApplyViewBase &&)=default
void erase(SLE::ref sle) override
Remove a peeked SLE.
Rules const & rules() const override
Returns the tx processing rules.
detail::ApplyStateTable items_
std::unique_ptr< SlesType::iter_base > slesBegin() const override
std::unique_ptr< SlesType::iter_base > slesUpperBound(uint256 const &key) const override
tx_type txRead(key_type const &key) const override
Read a transaction from the tx map.
Fees const & fees() const override
Returns the fees for the base ledger.
std::unique_ptr< TxsType::iter_base > txsEnd() const override
bool txExists(key_type const &key) const override
Returns true if a tx exists in the tx map.
void rawErase(SLE::ref sle) override
Delete an existing state item.
ApplyViewBase(ApplyViewBase const &)=delete
bool exists(Keylet const &k) const override
Determine if a state item exists.
ApplyViewBase & operator=(ApplyViewBase &&)=delete
Reflects the fee settings for a particular ledger.
A pair of SHAMap key and LedgerEntryType.