rippled
Public Member Functions | Static Private Member Functions | Private Attributes | List of all members
ripple::LedgerReplay Class Reference
Inheritance diagram for ripple::LedgerReplay:
Inheritance graph
[legend]
Collaboration diagram for ripple::LedgerReplay:
Collaboration graph
[legend]

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
 

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 33 of file LedgerReplay.h.

Constructor & Destructor Documentation

◆ LedgerReplay() [1/2]

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

Definition at line 25 of file LedgerReplay.cpp.

◆ LedgerReplay() [2/2]

ripple::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 38 of file LedgerReplay.cpp.

Member Function Documentation

◆ parent()

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

Definition at line 52 of file LedgerReplay.h.

◆ replay()

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

Definition at line 60 of file LedgerReplay.h.

◆ orderedTxns()

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

Definition at line 68 of file LedgerReplay.h.

◆ getCounter()

static auto& ripple::CountedObject< LedgerReplay >::getCounter
staticprivatenoexceptinherited

Definition at line 128 of file CountedObject.h.

Member Data Documentation

◆ parent_

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

Definition at line 35 of file LedgerReplay.h.

◆ replay_

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

Definition at line 36 of file LedgerReplay.h.

◆ orderedTxns_

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

Definition at line 37 of file LedgerReplay.h.