rippled
Loading...
Searching...
No Matches
ApplyViewImpl.cpp
1#include <xrpl/ledger/ApplyViewImpl.h>
2
3namespace xrpl {
4
5ApplyViewImpl::ApplyViewImpl(ReadView const* base, ApplyFlags flags) : ApplyViewBase(base, flags)
6{
7}
8
11 OpenView& to,
12 STTx const& tx,
13 TER ter,
14 std::optional<uint256> parentBatchId,
15 bool isDryRun,
17{
18 return items_.apply(to, tx, ter, deliver_, parentBatchId, isDryRun, j);
19}
20
23{
24 return items_.size();
25}
26
27void
29 OpenView& to,
30 std::function<void(
31 uint256 const& key,
32 bool isDelete,
33 std::shared_ptr<SLE const> const& before,
34 std::shared_ptr<SLE const> const& after)> const& func)
35{
36 items_.visit(to, func);
37}
38
39} // namespace xrpl
A generic endpoint for log messages.
Definition Journal.h:41
std::optional< TxMeta > apply(OpenView &to, STTx const &tx, TER ter, std::optional< uint256 > parentBatchId, bool isDryRun, beast::Journal j)
Apply the transaction.
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.
std::size_t size()
Get the number of modified entries.
std::optional< STAmount > deliver_
Writable ledger view that accumulates state and tx changes.
Definition OpenView.h:46
A view into a ledger.
Definition ReadView.h:32
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
void apply(RawView &to) const
detail::ApplyStateTable items_
Use hash_* containers for keys that do not need a cryptographically secure hashing algorithm.
Definition algorithm.h:6
bool after(NetClock::time_point now, std::uint32_t mark)
Has the specified time passed?
Definition View.cpp:3436
ApplyFlags
Definition ApplyView.h:11