3#include <xrpl/ledger/OpenView.h>
4#include <xrpl/ledger/detail/ApplyViewBase.h>
5#include <xrpl/protocol/STAmount.h>
6#include <xrpl/protocol/TER.h>
A generic endpoint for log messages.
ApplyViewImpl(ApplyViewImpl const &)=delete
ApplyViewImpl & operator=(ApplyViewImpl const &)=delete
std::optional< TxMeta > apply(OpenView &to, STTx const &tx, TER ter, std::optional< uint256 > parentBatchId, bool isDryRun, beast::Journal j)
Apply the transaction.
ApplyViewImpl & operator=(ApplyViewImpl &&)=delete
std::size_t size()
Get the number of modified entries.
std::optional< STAmount > deliver_
ApplyViewImpl(ApplyViewImpl &&)=default
void deliver(STAmount const &amount)
Set the amount of currency delivered.
void visit(OpenView &target, std::function< void(uint256 const &key, bool isDelete, SLE::const_ref before, SLE::const_ref after)> const &func)
Visit modified entries.
Writable ledger view that accumulates state and tx changes.
std::shared_ptr< STLedgerEntry const > const & const_ref
ApplyFlags flags() const override
Returns the tx apply flags.
Use hash_* containers for keys that do not need a cryptographically secure hashing algorithm.
bool after(NetClock::time_point now, std::uint32_t mark)
Has the specified time passed?
TERSubset< CanCvtToTER > TER