20 #ifndef RIPPLE_LEDGER_APPLYVIEWIMPL_H_INCLUDED
21 #define RIPPLE_LEDGER_APPLYVIEWIMPL_H_INCLUDED
23 #include <ripple/ledger/OpenView.h>
24 #include <ripple/ledger/detail/ApplyViewBase.h>
25 #include <ripple/protocol/STAmount.h>
26 #include <ripple/protocol/TER.h>
void visit(OpenView &target, std::function< void(uint256 const &key, bool isDelete, std::shared_ptr< SLE const > const &before, std::shared_ptr< SLE const > const &after)> const &func)
Visit modified entries.
void deliver(STAmount const &amount)
Set the amount of currency delivered.
Writable ledger view that accumulates state and tx changes.
Editable, discardable view that can build metadata for one tx.
std::optional< STAmount > deliver_
A generic endpoint for log messages.
ApplyFlags flags() const override
Returns the tx apply flags.
Use hash_* containers for keys that do not need a cryptographically secure hashing algorithm.
ApplyViewImpl & operator=(ApplyViewImpl &&)=delete
static bool after(NetClock::time_point now, std::uint32_t mark)
Has the specified time passed?
std::size_t size()
Get the number of modified entries.
void apply(OpenView &to, STTx const &tx, TER ter, beast::Journal j)
Apply the transaction.