xrpld
Toggle main menu visibility
Loading...
Searching...
No Matches
xrpld
app
ledger
LedgerReplay.h
1
#pragma once
2
3
#include <xrpl/basics/CountedObject.h>
4
5
#include <
cstdint
>
6
#include <
map
>
7
#include <
memory
>
8
9
namespace
xrpl
{
10
11
class
Ledger
;
12
class
STTx
;
13
14
class
LedgerReplay
:
public
CountedObject
<LedgerReplay>
15
{
16
std::shared_ptr<Ledger const>
parent_
;
17
std::shared_ptr<Ledger const>
replay_
;
18
std::map<std::uint32_t, std::shared_ptr<STTx const>
>
orderedTxns_
;
19
20
public
:
21
LedgerReplay
(
std::shared_ptr<Ledger const>
parent
,
std::shared_ptr<Ledger const>
replay
);
22
23
LedgerReplay
(
24
std::shared_ptr<Ledger const>
parent
,
25
std::shared_ptr<Ledger const>
replay
,
26
std::map
<
std::uint32_t
,
std::shared_ptr<STTx const>
>&&
orderedTxns
);
27
31
[[nodiscard]]
std::shared_ptr<Ledger const>
const
&
32
parent
()
const
33
{
34
return
parent_
;
35
}
36
40
[[nodiscard]]
std::shared_ptr<Ledger const>
const
&
41
replay
()
const
42
{
43
return
replay_
;
44
}
45
49
[[nodiscard]]
std::map<std::uint32_t, std::shared_ptr<STTx const>
>
const
&
50
orderedTxns
()
const
51
{
52
return
orderedTxns_
;
53
}
54
};
55
56
}
// namespace xrpl
xrpl::CountedObject< LedgerReplay >::CountedObject
CountedObject() noexcept
Definition
CountedObject.h:119
xrpl::LedgerReplay::LedgerReplay
LedgerReplay(std::shared_ptr< Ledger const > parent, std::shared_ptr< Ledger const > replay)
Definition
LedgerReplay.cpp:13
xrpl::LedgerReplay::orderedTxns_
std::map< std::uint32_t, std::shared_ptr< STTx const > > orderedTxns_
Definition
LedgerReplay.h:18
xrpl::LedgerReplay::replay_
std::shared_ptr< Ledger const > replay_
Definition
LedgerReplay.h:17
xrpl::LedgerReplay::replay
std::shared_ptr< Ledger const > const & replay() const
Definition
LedgerReplay.h:41
xrpl::LedgerReplay::parent
std::shared_ptr< Ledger const > const & parent() const
Definition
LedgerReplay.h:32
xrpl::LedgerReplay::orderedTxns
std::map< std::uint32_t, std::shared_ptr< STTx const > > const & orderedTxns() const
Definition
LedgerReplay.h:50
xrpl::LedgerReplay::parent_
std::shared_ptr< Ledger const > parent_
Definition
LedgerReplay.h:16
xrpl::Ledger
Holds a ledger.
Definition
include/xrpl/ledger/Ledger.h:76
xrpl::STTx
Definition
STTx.h:43
cstdint
std::uint32_t
map
memory
xrpl
Use hash_* containers for keys that do not need a cryptographically secure hashing algorithm.
Definition
algorithm.h:5
std::shared_ptr
Generated by
1.17.0