rippled
Classes | Public Types | Public Member Functions | Static Public Member Functions | Private Attributes | List of all members
ripple::test::csf::TxSet Class Reference

TxSet is a set of transactions to consider including in the ledger. More...

Collaboration diagram for ripple::test::csf::TxSet:
Collaboration graph
[legend]

Classes

class  MutableTxSet
 

Public Types

using ID = beast::uhash<>::result_type
 
using Tx = csf::Tx
 

Public Member Functions

 TxSet ()=default
 
 TxSet (TxSetType const &s)
 
 TxSet (MutableTxSet &&m)
 
bool exists (Tx::ID const txId) const
 
Tx const * find (Tx::ID const &txId) const
 
TxSetType const & txs () const
 
ID id () const
 
std::map< Tx::ID, bool > compare (TxSet const &other) const
 

Static Public Member Functions

static ID calcID (TxSetType const &txs)
 

Private Attributes

TxSetType txs_
 The set contains the actual transactions. More...
 
ID id_
 The unique ID of this tx set. More...
 

Detailed Description

TxSet is a set of transactions to consider including in the ledger.

Definition at line 76 of file Tx.h.

Member Typedef Documentation

◆ ID

Definition at line 79 of file Tx.h.

◆ Tx

Definition at line 80 of file Tx.h.

Constructor & Destructor Documentation

◆ TxSet() [1/3]

ripple::test::csf::TxSet::TxSet ( )
default

◆ TxSet() [2/3]

ripple::test::csf::TxSet::TxSet ( TxSetType const &  s)

Definition at line 113 of file Tx.h.

◆ TxSet() [3/3]

ripple::test::csf::TxSet::TxSet ( MutableTxSet &&  m)

Definition at line 117 of file Tx.h.

Member Function Documentation

◆ calcID()

static ID ripple::test::csf::TxSet::calcID ( TxSetType const &  txs)
static

Definition at line 83 of file Tx.h.

◆ exists()

bool ripple::test::csf::TxSet::exists ( Tx::ID const  txId) const

Definition at line 122 of file Tx.h.

◆ find()

Tx const* ripple::test::csf::TxSet::find ( Tx::ID const &  txId) const

Definition at line 129 of file Tx.h.

◆ txs()

TxSetType const& ripple::test::csf::TxSet::txs ( ) const

Definition at line 138 of file Tx.h.

◆ id()

ID ripple::test::csf::TxSet::id ( ) const

Definition at line 144 of file Tx.h.

◆ compare()

std::map<Tx::ID, bool> ripple::test::csf::TxSet::compare ( TxSet const &  other) const
Returns
Map of Tx::ID that are missing. True means it was in this set and not other. False means it was in the other set and not this

Definition at line 154 of file Tx.h.

Member Data Documentation

◆ txs_

TxSetType ripple::test::csf::TxSet::txs_
private

The set contains the actual transactions.

Definition at line 175 of file Tx.h.

◆ id_

ID ripple::test::csf::TxSet::id_
private

The unique ID of this tx set.

Definition at line 178 of file Tx.h.