xrpld
Loading...
Searching...
No Matches
xrpl::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 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 61 of file Tx.h.

Member Typedef Documentation

◆ ID

using xrpl::test::csf::TxSet::ID = beast::Uhash<>::result_type

Definition at line 64 of file Tx.h.

◆ Tx

Definition at line 65 of file Tx.h.

Constructor & Destructor Documentation

◆ TxSet() [1/3]

xrpl::test::csf::TxSet::TxSet ( )
default

◆ TxSet() [2/3]

xrpl::test::csf::TxSet::TxSet ( TxSetType s)

Definition at line 98 of file Tx.h.

◆ TxSet() [3/3]

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

Definition at line 102 of file Tx.h.

Member Function Documentation

◆ calcID()

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

Definition at line 68 of file Tx.h.

◆ exists()

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

Definition at line 108 of file Tx.h.

◆ find()

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

Definition at line 115 of file Tx.h.

◆ txs()

TxSetType const & xrpl::test::csf::TxSet::txs ( ) const
nodiscard

Definition at line 124 of file Tx.h.

◆ id()

ID xrpl::test::csf::TxSet::id ( ) const
nodiscard

Definition at line 130 of file Tx.h.

◆ compare()

std::map< Tx::ID, bool > xrpl::test::csf::TxSet::compare ( TxSet const & other) const
nodiscard
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 140 of file Tx.h.

Member Data Documentation

◆ txs_

TxSetType xrpl::test::csf::TxSet::txs_
private

The set contains the actual transactions.

Definition at line 161 of file Tx.h.

◆ id_

ID xrpl::test::csf::TxSet::id_ {}
private

The unique ID of this tx set.

Definition at line 164 of file Tx.h.