rippled
Public Types | Public Member Functions | Public Attributes | Private Attributes | List of all members
ripple::SpanTip< Ledger > Class Template Reference

The tip of a span of ledger ancestry. More...

Collaboration diagram for ripple::SpanTip< Ledger >:
Collaboration graph
[legend]

Public Types

using Seq = typename Ledger::Seq
 
using ID = typename Ledger::ID
 

Public Member Functions

 SpanTip (Seq s, ID i, Ledger const lgr)
 
ID ancestor (Seq const &s) const
 Lookup the ID of an ancestor of the tip ledger. More...
 

Public Attributes

Seq seq
 
ID id
 

Private Attributes

const Ledger ledger
 

Detailed Description

template<class Ledger>
class ripple::SpanTip< Ledger >

The tip of a span of ledger ancestry.

Definition at line 37 of file LedgerTrie.h.

Member Typedef Documentation

◆ Seq

template<class Ledger >
using ripple::SpanTip< Ledger >::Seq = typename Ledger::Seq

Definition at line 40 of file LedgerTrie.h.

◆ ID

template<class Ledger >
using ripple::SpanTip< Ledger >::ID = typename Ledger::ID

Definition at line 41 of file LedgerTrie.h.

Constructor & Destructor Documentation

◆ SpanTip()

template<class Ledger >
ripple::SpanTip< Ledger >::SpanTip ( Seq  s,
ID  i,
Ledger const  lgr 
)

Definition at line 43 of file LedgerTrie.h.

Member Function Documentation

◆ ancestor()

template<class Ledger >
ID ripple::SpanTip< Ledger >::ancestor ( Seq const &  s) const

Lookup the ID of an ancestor of the tip ledger.

Parameters
sThe sequence number of the ancestor
Returns
The ID of the ancestor with that sequence number
Note
s must be less than or equal to the sequence number of the tip ledger

Definition at line 62 of file LedgerTrie.h.

Member Data Documentation

◆ seq

template<class Ledger >
Seq ripple::SpanTip< Ledger >::seq

Definition at line 49 of file LedgerTrie.h.

◆ id

template<class Ledger >
ID ripple::SpanTip< Ledger >::id

Definition at line 51 of file LedgerTrie.h.

◆ ledger

template<class Ledger >
const Ledger ripple::SpanTip< Ledger >::ledger
private

Definition at line 69 of file LedgerTrie.h.