20#ifndef RIPPLE_APP_MISC_CANONICALTXSET_H_INCLUDED
21#define RIPPLE_APP_MISC_CANONICALTXSET_H_INCLUDED
23#include <xrpl/basics/CountedObject.h>
24#include <xrpl/protocol/RippleLedgerHash.h>
25#include <xrpl/protocol/STTx.h>
26#include <xrpl/protocol/SeqProxy.h>
139 return map_.erase(it);
friend bool operator<=(Key const &lhs, Key const &rhs)
friend bool operator>=(Key const &lhs, Key const &rhs)
friend bool operator<(Key const &lhs, Key const &rhs)
Key(uint256 const &account, SeqProxy seqProx, uint256 const &id)
friend bool operator>(Key const &lhs, Key const &rhs)
uint256 const & getAccount() const
uint256 const & getTXID() const
friend bool operator==(Key const &lhs, Key const &rhs)
friend bool operator!=(Key const &lhs, Key const &rhs)
Holds transactions which were deferred to the next pass of consensus.
void insert(std::shared_ptr< STTx const > const &txn)
std::shared_ptr< STTx const > popAcctTransaction(std::shared_ptr< STTx const > const &tx)
std::map< Key, std::shared_ptr< STTx const > >::const_iterator const_iterator
const_iterator end() const
uint256 accountKey(AccountID const &account)
friend bool operator<(Key const &lhs, Key const &rhs)
const_iterator begin() const
CanonicalTXSet(LedgerHash const &saltHash)
const_iterator erase(const_iterator const &it)
std::map< Key, std::shared_ptr< STTx const > > map_
uint256 const & key() const
void reset(LedgerHash const &salt)
Tracks the number of instances of an object.
A type that represents either a sequence value or a ticket value.
Use hash_* containers for keys that do not need a cryptographically secure hashing algorithm.