Files
rippled/src/libxrpl/ledger/ApplyViewImpl.cpp
Bart 1eb0fdac65 refactor: Rename ripple namespace to xrpl (#5982)
This change renames all occurrences of `namespace ripple` and `ripple::` to `namespace xrpl` and `xrpl::`, respectively, as well as the names of test suites. It also provides a script to allow developers to replicate the changes in their local branch or fork to avoid conflicts.
2025-12-11 16:51:49 +00:00

41 lines
776 B
C++

#include <xrpl/ledger/ApplyViewImpl.h>
namespace xrpl {
ApplyViewImpl::ApplyViewImpl(ReadView const* base, ApplyFlags flags)
: ApplyViewBase(base, flags)
{
}
std::optional<TxMeta>
ApplyViewImpl::apply(
OpenView& to,
STTx const& tx,
TER ter,
std::optional<uint256> parentBatchId,
bool isDryRun,
beast::Journal j)
{
return items_.apply(to, tx, ter, deliver_, parentBatchId, isDryRun, j);
}
std::size_t
ApplyViewImpl::size()
{
return items_.size();
}
void
ApplyViewImpl::visit(
OpenView& to,
std::function<void(
uint256 const& key,
bool isDelete,
std::shared_ptr<SLE const> const& before,
std::shared_ptr<SLE const> const& after)> const& func)
{
items_.visit(to, func);
}
} // namespace xrpl