CatapultServer  v0.5.0.1 (Elephant)
catapult::cache::PtCacheModifier Class Referenceabstract
Inheritance diagram for catapult::cache::PtCacheModifier:
Collaboration diagram for catapult::cache::PtCacheModifier:

Public Member Functions

virtual model::DetachedTransactionInfo add (const Hash256 &parentHash, const Key &signer, const Signature &signature)=0
 Adds a cosignature (composed of signer and signature) for a partial transaction with hash parentHash to the cache. More...
 
virtual std::vector< model::DetachedTransactionInfoprune (Timestamp timestamp)=0
 Removes all partial transactions that have deadlines at or before the given timestamp. More...
 
virtual std::vector< model::DetachedTransactionInfoprune (const predicate< const Hash256 & > &hashPredicate)=0
 Removes all partial transactions for which hashPredicate returns true. More...
 
- Public Member Functions inherited from catapult::cache::BasicTransactionsCacheModifier< model::DetachedTransactionInfo >
virtual ~BasicTransactionsCacheModifier () noexcept(false)
 
virtual size_t size () const=0
 Returns the number of transactions in the cache. More...
 
virtual bool add (const model::DetachedTransactionInfo &transactionInfo)=0
 
virtual model::DetachedTransactionInfo remove (const Hash256 &hash)=0
 Removes the transaction identified by hash from the cache. More...
 

Detailed Description

An interface for modifying a partial transactions cache.

Note
Cache assumes that added transactions are stripped of all cosignatures.

Member Function Documentation

◆ add()

virtual model::DetachedTransactionInfo catapult::cache::PtCacheModifier::add ( const Hash256 parentHash,
const Key signer,
const Signature signature 
)
pure virtual

Adds a cosignature (composed of signer and signature) for a partial transaction with hash parentHash to the cache.

Here is the caller graph for this function:

◆ prune() [1/2]

virtual std::vector<model::DetachedTransactionInfo> catapult::cache::PtCacheModifier::prune ( const predicate< const Hash256 & > &  hashPredicate)
pure virtual

Removes all partial transactions for which hashPredicate returns true.

◆ prune() [2/2]

virtual std::vector<model::DetachedTransactionInfo> catapult::cache::PtCacheModifier::prune ( Timestamp  timestamp)
pure virtual

Removes all partial transactions that have deadlines at or before the given timestamp.

Here is the caller graph for this function:

The documentation for this class was generated from the following file: