1#ifndef XRPL_LEDGER_APPLYVIEWIMPL_H_INCLUDED
2#define XRPL_LEDGER_APPLYVIEWIMPL_H_INCLUDED
4#include <xrpl/ledger/OpenView.h>
5#include <xrpl/ledger/detail/ApplyViewBase.h>
6#include <xrpl/protocol/STAmount.h>
7#include <xrpl/protocol/TER.h>
A generic endpoint for log messages.
Editable, discardable view that can build metadata for one tx.
std::optional< TxMeta > apply(OpenView &to, STTx const &tx, TER ter, std::optional< uint256 > parentBatchId, bool isDryRun, beast::Journal j)
Apply the transaction.
std::optional< STAmount > deliver_
void deliver(STAmount const &amount)
Set the amount of currency delivered.
std::size_t size()
Get the number of modified entries.
ApplyViewImpl(ApplyViewImpl const &)=delete
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.
ApplyViewImpl & operator=(ApplyViewImpl const &)=delete
ApplyViewImpl & operator=(ApplyViewImpl &&)=delete
ApplyViewImpl(ApplyViewImpl &&)=default
Writable ledger view that accumulates state and tx changes.
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?