rippled
Loading...
Searching...
No Matches
ApplyViewImpl.cpp
1#include <xrpl/ledger/ApplyViewImpl.h>
2
3namespace ripple {
4
6 : ApplyViewBase(base, flags)
7{
8}
9
12 OpenView& to,
13 STTx const& tx,
14 TER ter,
15 std::optional<uint256> parentBatchId,
16 bool isDryRun,
18{
19 return items_.apply(to, tx, ter, deliver_, parentBatchId, isDryRun, j);
20}
21
24{
25 return items_.size();
26}
27
28void
30 OpenView& to,
31 std::function<void(
32 uint256 const& key,
33 bool isDelete,
34 std::shared_ptr<SLE const> const& before,
35 std::shared_ptr<SLE const> const& after)> const& func)
36{
37 items_.visit(to, func);
38}
39
40} // namespace ripple
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.
std::optional< STAmount > deliver_
std::size_t size()
Get the number of modified entries.
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.
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:3247