rippled
Public Member Functions | Public Attributes | Friends | List of all members
ripple::test::csf::Ledger::Instance Struct Reference
Collaboration diagram for ripple::test::csf::Ledger::Instance:
Collaboration graph
[legend]

Public Member Functions

 Instance ()
 
auto asTie () const
 

Public Attributes

Seq seq {0}
 
TxSetType txs
 
NetClock::duration closeTimeResolution = ledgerDefaultTimeResolution
 
NetClock::time_point closeTime
 When the ledger closed (up to closeTimeResolution) More...
 
bool closeTimeAgree = true
 Whether consensus agreed on the close time. More...
 
ID parentID {0}
 Parent ledger id. More...
 
NetClock::time_point parentCloseTime
 Parent ledger close time. More...
 
std::vector< Ledger::IDancestors
 IDs of this ledgers ancestors. More...
 

Friends

bool operator== (Instance const &a, Instance const &b)
 
bool operator!= (Instance const &a, Instance const &b)
 
bool operator< (Instance const &a, Instance const &b)
 
template<class Hasher >
void hash_append (Hasher &h, Ledger::Instance const &instance)
 

Detailed Description

Definition at line 76 of file ledgers.h.

Constructor & Destructor Documentation

◆ Instance()

ripple::test::csf::Ledger::Instance::Instance ( )

Definition at line 78 of file ledgers.h.

Member Function Documentation

◆ asTie()

auto ripple::test::csf::Ledger::Instance::asTie ( ) const

Definition at line 109 of file ledgers.h.

Friends And Related Function Documentation

◆ operator==

bool operator== ( Instance const &  a,
Instance const &  b 
)
friend

Definition at line 122 of file ledgers.h.

◆ operator!=

bool operator!= ( Instance const &  a,
Instance const &  b 
)
friend

Definition at line 128 of file ledgers.h.

◆ operator<

bool operator< ( Instance const &  a,
Instance const &  b 
)
friend

Definition at line 134 of file ledgers.h.

◆ hash_append

template<class Hasher >
void hash_append ( Hasher &  h,
Ledger::Instance const &  instance 
)
friend

Definition at line 141 of file ledgers.h.

Member Data Documentation

◆ seq

Seq ripple::test::csf::Ledger::Instance::seq {0}

Definition at line 83 of file ledgers.h.

◆ txs

TxSetType ripple::test::csf::Ledger::Instance::txs

Definition at line 86 of file ledgers.h.

◆ closeTimeResolution

NetClock::duration ripple::test::csf::Ledger::Instance::closeTimeResolution = ledgerDefaultTimeResolution

Definition at line 89 of file ledgers.h.

◆ closeTime

NetClock::time_point ripple::test::csf::Ledger::Instance::closeTime

When the ledger closed (up to closeTimeResolution)

Definition at line 92 of file ledgers.h.

◆ closeTimeAgree

bool ripple::test::csf::Ledger::Instance::closeTimeAgree = true

Whether consensus agreed on the close time.

Definition at line 95 of file ledgers.h.

◆ parentID

ID ripple::test::csf::Ledger::Instance::parentID {0}

Parent ledger id.

Definition at line 98 of file ledgers.h.

◆ parentCloseTime

NetClock::time_point ripple::test::csf::Ledger::Instance::parentCloseTime

Parent ledger close time.

Definition at line 101 of file ledgers.h.

◆ ancestors

std::vector<Ledger::ID> ripple::test::csf::Ledger::Instance::ancestors

IDs of this ledgers ancestors.

Since each ledger already has unique ancestors based on the parentID, this member is not needed for any of the operators below.

Definition at line 106 of file ledgers.h.