xrpld
Toggle main menu visibility
Loading...
Searching...
No Matches
include
xrpl
ledger
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
8
namespace
xrpl
{
9
17
class
Sandbox
:
public
detail::ApplyViewBase
18
{
19
public
:
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
29
Sandbox
(
ReadView
const
* base,
ApplyFlags
flags
) :
ApplyViewBase
(base,
flags
)
30
{
31
}
32
33
Sandbox
(
ApplyView
const
* base) :
Sandbox
(base, base->
flags
())
34
{
35
}
36
37
void
38
apply
(
RawView
& to)
39
{
40
items_
.apply(to);
41
}
42
};
43
44
}
// namespace xrpl
xrpl::ApplyView
Writeable view to a ledger, for applying a transaction.
Definition
ApplyView.h:141
xrpl::RawView
Interface for ledger entry changes.
Definition
RawView.h:18
xrpl::ReadView
A view into a ledger.
Definition
ReadView.h:41
xrpl::Sandbox::apply
void apply(RawView &to)
Definition
Sandbox.h:38
xrpl::Sandbox::Sandbox
Sandbox(Sandbox const &)=delete
xrpl::Sandbox::operator=
Sandbox & operator=(Sandbox const &)=delete
xrpl::Sandbox::Sandbox
Sandbox(ReadView const *base, ApplyFlags flags)
Definition
Sandbox.h:29
xrpl::Sandbox::operator=
Sandbox & operator=(Sandbox &&)=delete
xrpl::Sandbox::Sandbox
Sandbox(ApplyView const *base)
Definition
Sandbox.h:33
xrpl::Sandbox::Sandbox
Sandbox(Sandbox &&)=default
xrpl::Sandbox::Sandbox
Sandbox()=delete
xrpl::detail::ApplyViewBase
Definition
ApplyViewBase.h:21
xrpl::detail::ApplyViewBase::flags
ApplyFlags flags() const override
Returns the tx apply flags.
Definition
ApplyViewBase.cpp:112
xrpl::detail::ApplyViewBase::ApplyViewBase
ApplyViewBase()=delete
xrpl::detail::ApplyViewBase::items_
detail::ApplyStateTable items_
Definition
ApplyViewBase.h:111
xrpl
Use hash_* containers for keys that do not need a cryptographically secure hashing algorithm.
Definition
algorithm.h:5
xrpl::ApplyFlags
ApplyFlags
Definition
ApplyView.h:27
Generated by
1.17.0