std::size_t size()
Get the number of unapplied changes.
void addOrderBook(Book const &book)
Registers a newly-created order book directory with the shared, process-wide OrderBookDB,...
ApplyFlags const & flags() const
ApplyContext(ServiceRegistry ®istry, OpenView &base, std::optional< UInt256 const > const &parentBatchId, STTx const &tx, TER preclaimResult, XRPAmount baseFee, ApplyFlags flags, beast::Journal journal=beast::Journal{beast::Journal::getNullSink()})
void discard()
Discard changes and start fresh.
std::reference_wrapper< ServiceRegistry > registry
std::optional< UInt256 const > parentBatchId_
std::optional< TxMeta > apply(TER)
Apply the transaction result to the base.
std::optional< ApplyViewImpl > view_
beast::Journal const journal
void visit(std::function< void(UInt256 const &key, bool isDelete, SLE::ConstRef before, SLE::ConstRef after)> const &func)
Visit unapplied changes.
std::shared_ptr< STLedgerEntry const > const & ConstRef