xrpld
Loading...
Searching...
No Matches
xrpl::LedgerReplay Class Reference

#include <LedgerReplay.h>

Inheritance diagram for xrpl::LedgerReplay:
Collaboration diagram for xrpl::LedgerReplay:

Public Member Functions

 LedgerReplay (std::shared_ptr< Ledger const > parent, std::shared_ptr< Ledger const > replay)
 LedgerReplay (std::shared_ptr< Ledger const > parent, std::shared_ptr< Ledger const > replay, std::map< std::uint32_t, std::shared_ptr< STTx const > > &&orderedTxns)
std::shared_ptr< Ledger const > const & parent () const
std::shared_ptr< Ledger const > const & replay () const
std::map< std::uint32_t, std::shared_ptr< STTx const > > const & orderedTxns () const

Public Attributes

friend Object

Static Private Member Functions

static auto & getCounter () noexcept

Private Attributes

std::shared_ptr< Ledger const > parent_
std::shared_ptr< Ledger const > replay_
std::map< std::uint32_t, std::shared_ptr< STTx const > > orderedTxns_

Detailed Description

Definition at line 14 of file LedgerReplay.h.

Constructor & Destructor Documentation

◆ LedgerReplay() [1/2]

xrpl::LedgerReplay::LedgerReplay ( std::shared_ptr< Ledger const > parent,
std::shared_ptr< Ledger const > replay )

Definition at line 13 of file LedgerReplay.cpp.

◆ LedgerReplay() [2/2]

xrpl::LedgerReplay::LedgerReplay ( std::shared_ptr< Ledger const > parent,
std::shared_ptr< Ledger const > replay,
std::map< std::uint32_t, std::shared_ptr< STTx const > > && orderedTxns )

Definition at line 26 of file LedgerReplay.cpp.

Member Function Documentation

◆ parent()

std::shared_ptr< Ledger const > const & xrpl::LedgerReplay::parent ( ) const
nodiscard
Returns
The parent of the ledger to replay

Definition at line 31 of file LedgerReplay.h.

◆ replay()

std::shared_ptr< Ledger const > const & xrpl::LedgerReplay::replay ( ) const
nodiscard
Returns
The ledger to replay

Definition at line 39 of file LedgerReplay.h.

◆ orderedTxns()

std::map< std::uint32_t, std::shared_ptr< STTx const > > const & xrpl::LedgerReplay::orderedTxns ( ) const
nodiscard
Returns
Transactions in the order they should be replayed

Definition at line 47 of file LedgerReplay.h.

◆ getCounter()

auto & xrpl::CountedObject< LedgerReplay >::getCounter ( )
staticprivatenoexceptinherited

Definition at line 109 of file CountedObject.h.

Member Data Documentation

◆ parent_

std::shared_ptr<Ledger const> xrpl::LedgerReplay::parent_
private

Definition at line 16 of file LedgerReplay.h.

◆ replay_

std::shared_ptr<Ledger const> xrpl::LedgerReplay::replay_
private

Definition at line 17 of file LedgerReplay.h.

◆ orderedTxns_

std::map<std::uint32_t, std::shared_ptr<STTx const> > xrpl::LedgerReplay::orderedTxns_
private

Definition at line 18 of file LedgerReplay.h.

◆ Object

Definition at line 134 of file CountedObject.h.