| 
    rippled
    
   | 
 
Represents a set of transactions in RCLConsensus. More...
#include <RCLCxTx.h>

Classes | |
| class | MutableTxSet | 
Public Types | |
| using | ID = uint256 | 
| Unique identifier/hash of the set of transactions.   | |
| using | Tx = RCLCxTx | 
| The type that corresponds to a single transaction.   | |
Public Member Functions | |
| RCLTxSet (std::shared_ptr< SHAMap > m) | |
| Constructor.   | |
| RCLTxSet (MutableTxSet const &m) | |
| Constructor from a previously created MutableTxSet.   | |
| bool | exists (Tx::ID const &entry) const | 
| Test if a transaction is in the set.   | |
| boost::intrusive_ptr< SHAMapItem const > const & | find (Tx::ID const &entry) const | 
| Lookup a transaction.   | |
| ID | id () const | 
| The unique ID/hash of the transaction set.   | |
| std::map< Tx::ID, bool > | compare (RCLTxSet const &j) const | 
| Find transactions not in common between this and another transaction set.   | |
Public Attributes | |
| std::shared_ptr< SHAMap > | map_ | 
| The SHAMap representing the transactions.   | |
Represents a set of transactions in RCLConsensus.
RCLTxSet is a thin wrapper over a SHAMap that stores the set of transactions.
| using ripple::RCLTxSet::ID = uint256 | 
| using ripple::RCLTxSet::Tx = RCLCxTx | 
| ripple::RCLTxSet::RCLTxSet | ( | std::shared_ptr< SHAMap > | m | ) | 
| ripple::RCLTxSet::RCLTxSet | ( | MutableTxSet const & | m | ) | 
Constructor from a previously created MutableTxSet.
| m | MutableTxSet that will become fixed | 
| bool ripple::RCLTxSet::exists | ( | Tx::ID const & | entry | ) | const | 
| boost::intrusive_ptr< SHAMapItem const > const & ripple::RCLTxSet::find | ( | Tx::ID const & | entry | ) | const | 
Lookup a transaction.
| entry | The ID of the transaction to find. | 
std::shared_ptr<const SHAMapItem> rather than a Tx, which cannot refer to a missing transaction. The generic consensus code uses the shared_ptr semantics to know whether the find was successful and properly creates a Tx as needed. | ID ripple::RCLTxSet::id | ( | ) | const | 
Find transactions not in common between this and another transaction set.
| j | The set to compare with | 
j but not both. The key is the transaction ID and the value is a bool of the transaction exists in this set. | std::shared_ptr<SHAMap> ripple::RCLTxSet::map_ |