Files
rippled/include/xrpl/ledger/Sandbox.h
Bart 1d42c4f6de refactor: Remove unnecessary copyright notices already covered by LICENSE.md (#5929)
Per XLS-0095, we are taking steps to rename ripple(d) to xrpl(d).

This change specifically removes all copyright notices referencing Ripple, XRPLF, and certain affiliated contributors upon mutual agreement, so the notice in the LICENSE.md file applies throughout. Copyright notices referencing external contributions remain as-is. Duplicate verbiage is also removed.
2025-11-04 08:33:42 +00:00

45 lines
853 B
C++

#ifndef XRPL_LEDGER_SANDBOX_H_INCLUDED
#define XRPL_LEDGER_SANDBOX_H_INCLUDED
#include <xrpl/ledger/RawView.h>
#include <xrpl/ledger/detail/ApplyViewBase.h>
namespace ripple {
/** Discardable, editable view to a ledger.
The sandbox inherits the flags of the base.
@note Presented as ApplyView to clients.
*/
class Sandbox : public detail::ApplyViewBase
{
public:
Sandbox() = delete;
Sandbox(Sandbox const&) = delete;
Sandbox&
operator=(Sandbox&&) = delete;
Sandbox&
operator=(Sandbox const&) = delete;
Sandbox(Sandbox&&) = default;
Sandbox(ReadView const* base, ApplyFlags flags) : ApplyViewBase(base, flags)
{
}
Sandbox(ApplyView const* base) : Sandbox(base, base->flags())
{
}
void
apply(RawView& to)
{
items_.apply(to);
}
};
} // namespace ripple
#endif