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