xrpld
Loading...
Searching...
No Matches
Sandbox.h
1#pragma once
2
3#include <xrpl/ledger/ApplyView.h>
4#include <xrpl/ledger/RawView.h>
5#include <xrpl/ledger/ReadView.h>
6#include <xrpl/ledger/detail/ApplyViewBase.h>
7
8namespace xrpl {
9
18{
19public:
20 Sandbox() = delete;
21 Sandbox(Sandbox const&) = delete;
22 Sandbox&
23 operator=(Sandbox&&) = delete;
24 Sandbox&
25 operator=(Sandbox const&) = delete;
26
27 Sandbox(Sandbox&&) = default;
28
30 {
31 }
32
33 Sandbox(ApplyView const* base) : Sandbox(base, base->flags())
34 {
35 }
36
37 void
39 {
40 items_.apply(to);
41 }
42};
43
44} // namespace xrpl
Writeable view to a ledger, for applying a transaction.
Definition ApplyView.h:134
Interface for ledger entry changes.
Definition RawView.h:18
A view into a ledger.
Definition ReadView.h:41
void apply(RawView &to)
Definition Sandbox.h:38
Sandbox(Sandbox const &)=delete
Sandbox & operator=(Sandbox const &)=delete
Sandbox(ReadView const *base, ApplyFlags flags)
Definition Sandbox.h:29
Sandbox & operator=(Sandbox &&)=delete
Sandbox(ApplyView const *base)
Definition Sandbox.h:33
Sandbox(Sandbox &&)=default
Sandbox()=delete
ApplyFlags flags() const override
Returns the tx apply flags.
detail::ApplyStateTable items_
Use hash_* containers for keys that do not need a cryptographically secure hashing algorithm.
Definition algorithm.h:5
ApplyFlags
Definition ApplyView.h:27