20 #ifndef RIPPLE_LEDGER_APPLYSTATETABLE_H_INCLUDED
21 #define RIPPLE_LEDGER_APPLYSTATETABLE_H_INCLUDED
23 #include <ripple/ledger/OpenView.h>
24 #include <ripple/ledger/RawView.h>
25 #include <ripple/ledger/ReadView.h>
26 #include <ripple/ledger/TxMeta.h>
27 #include <ripple/basics/XRPAmount.h>
28 #include <ripple/protocol/TER.h>
29 #include <ripple/beast/utility/Journal.h>
69 TER ter, boost::optional<
77 boost::optional<key_type>
79 key_type const& key, boost::optional<
152 SLE const>
const& sle,
Mods& mods,
A pair of SHAMap key and LedgerEntryType.
void insert(ReadView const &base, std::shared_ptr< SLE > const &sle)
Writable ledger view that accumulates state and tx changes.
void visit(ReadView const &base, std::function< void(uint256 const &key, bool isDelete, std::shared_ptr< SLE const > const &before, std::shared_ptr< SLE const > const &after)> const &func) const
ApplyStateTable & operator=(ApplyStateTable &&)=delete
bool exists(ReadView const &base, Keylet const &k) const
ApplyStateTable()=default
static void threadItem(TxMeta &meta, std::shared_ptr< SLE > const &to)
XRPAmount const & dropsDestroyed() const
void destroyXRP(XRPAmount const &fee)
XRPAmount dropsDestroyed_
void replace(ReadView const &base, std::shared_ptr< SLE > const &sle)
Interface for ledger entry changes.
hash_map< key_type, std::shared_ptr< SLE > > Mods
void apply(RawView &to) const
void threadOwners(ReadView const &base, TxMeta &meta, std::shared_ptr< SLE const > const &sle, Mods &mods, beast::Journal j)
void erase(ReadView const &base, std::shared_ptr< SLE > const &sle)
void threadTx(ReadView const &base, TxMeta &meta, AccountID const &to, Mods &mods, beast::Journal j)
A generic endpoint for log messages.
std::shared_ptr< SLE const > read(ReadView const &base, Keylet const &k) const
void rawErase(ReadView const &base, std::shared_ptr< SLE > const &sle)
std::shared_ptr< SLE > getForMod(ReadView const &base, key_type const &key, Mods &mods, beast::Journal j)
boost::optional< key_type > succ(ReadView const &base, key_type const &key, boost::optional< key_type > const &last) const
ReadView::key_type key_type
Use hash_* containers for keys that do not need a cryptographically secure hashing algorithm.
void update(ReadView const &base, std::shared_ptr< SLE > const &sle)
static bool after(NetClock::time_point now, std::uint32_t mark)
Has the specified time passed?
std::map< key_type, std::pair< Action, std::shared_ptr< SLE > >> items_t
std::shared_ptr< SLE > peek(ReadView const &base, Keylet const &k)