rippled
Loading...
Searching...
No Matches
Sandbox.h
1#pragma once
2
3#include <xrpl/ledger/RawView.h>
4#include <xrpl/ledger/detail/ApplyViewBase.h>
5
6namespace xrpl {
7
15{
16public:
17 Sandbox() = delete;
18 Sandbox(Sandbox const&) = delete;
19 Sandbox&
20 operator=(Sandbox&&) = delete;
21 Sandbox&
22 operator=(Sandbox const&) = delete;
23
24 Sandbox(Sandbox&&) = default;
25
27 {
28 }
29
30 Sandbox(ApplyView const* base) : Sandbox(base, base->flags())
31 {
32 }
33
34 void
36 {
37 items_.apply(to);
38 }
39};
40
41} // namespace xrpl
Writeable view to a ledger, for applying a transaction.
Definition ApplyView.h:114
Interface for ledger entry changes.
Definition RawView.h:14
A view into a ledger.
Definition ReadView.h:31
Discardable, editable view to a ledger.
Definition Sandbox.h:15
void apply(RawView &to)
Definition Sandbox.h:35
Sandbox(Sandbox const &)=delete
Sandbox & operator=(Sandbox const &)=delete
Sandbox(ReadView const *base, ApplyFlags flags)
Definition Sandbox.h:26
Sandbox & operator=(Sandbox &&)=delete
Sandbox(ApplyView const *base)
Definition Sandbox.h:30
Sandbox(Sandbox &&)=default
Sandbox()=delete
void apply(RawView &to) const
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:10