rippled
Public Member Functions | Static Private Member Functions | Private Attributes | List of all members
ripple::AcceptedLedger Class Reference

A ledger that has become irrevocable. More...

Inheritance diagram for ripple::AcceptedLedger:
Inheritance graph
[legend]
Collaboration diagram for ripple::AcceptedLedger:
Collaboration graph
[legend]

Public Member Functions

 AcceptedLedger (std::shared_ptr< ReadView const > const &ledger, Application &app)
 
std::shared_ptr< ReadView const > const & getLedger () const
 
std::size_t size () const
 
auto begin () const
 
auto end () const
 

Static Private Member Functions

static auto & getCounter () noexcept
 

Private Attributes

std::shared_ptr< ReadView const > mLedger
 
std::vector< std::unique_ptr< AcceptedLedgerTx > > transactions_
 

Detailed Description

A ledger that has become irrevocable.

An accepted ledger is a ledger that has a sufficient number of validations to convince the local server that it is irrevocable.

The existence of an accepted ledger implies all preceding ledgers are accepted.

Definition at line 44 of file AcceptedLedger.h.

Constructor & Destructor Documentation

◆ AcceptedLedger()

ripple::AcceptedLedger::AcceptedLedger ( std::shared_ptr< ReadView const > const &  ledger,
Application app 
)

Definition at line 26 of file AcceptedLedger.cpp.

Member Function Documentation

◆ getLedger()

std::shared_ptr<ReadView const> const& ripple::AcceptedLedger::getLedger ( ) const

Definition at line 52 of file AcceptedLedger.h.

◆ size()

std::size_t ripple::AcceptedLedger::size ( ) const

Definition at line 58 of file AcceptedLedger.h.

◆ begin()

auto ripple::AcceptedLedger::begin ( ) const

Definition at line 64 of file AcceptedLedger.h.

◆ end()

auto ripple::AcceptedLedger::end ( ) const

Definition at line 70 of file AcceptedLedger.h.

◆ getCounter()

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

Definition at line 128 of file CountedObject.h.

Member Data Documentation

◆ mLedger

std::shared_ptr<ReadView const> ripple::AcceptedLedger::mLedger
private

Definition at line 76 of file AcceptedLedger.h.

◆ transactions_

std::vector<std::unique_ptr<AcceptedLedgerTx> > ripple::AcceptedLedger::transactions_
private

Definition at line 77 of file AcceptedLedger.h.