rippled
Loading...
Searching...
No Matches
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...

#include <Tx.h>

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.
 
ID id_
 The unique ID of this tx set.
 

Detailed Description

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

Definition at line 63 of file Tx.h.

Member Typedef Documentation

◆ ID

Definition at line 66 of file Tx.h.

◆ Tx

Definition at line 67 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 100 of file Tx.h.

◆ TxSet() [3/3]

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

Definition at line 104 of file Tx.h.

Member Function Documentation

◆ calcID()

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

Definition at line 70 of file Tx.h.

◆ exists()

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

Definition at line 109 of file Tx.h.

◆ find()

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

Definition at line 116 of file Tx.h.

◆ txs()

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

Definition at line 125 of file Tx.h.

◆ id()

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

Definition at line 131 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 141 of file Tx.h.

Member Data Documentation

◆ txs_

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

The set contains the actual transactions.

Definition at line 162 of file Tx.h.

◆ id_

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

The unique ID of this tx set.

Definition at line 165 of file Tx.h.