CatapultServer  v0.5.0.1 (Elephant)
catapult::cache::BasicTransactionsCacheModifier< TTransactionInfo > Class Template Referenceabstract

An interface for modifying a transactions cache. More...

Public Member Functions

virtual ~BasicTransactionsCacheModifier () noexcept(false)
 
virtual size_t size () const =0
 Returns the number of transactions in the cache. More...
 
virtual bool add (const TTransactionInfo &transactionInfo)=0
 
virtual TTransactionInfo remove (const Hash256 &hash)=0
 Removes the transaction identified by hash from the cache. More...
 

Detailed Description

template<typename TTransactionInfo>
class catapult::cache::BasicTransactionsCacheModifier< TTransactionInfo >

An interface for modifying a transactions cache.

Constructor & Destructor Documentation

◆ ~BasicTransactionsCacheModifier()

template<typename TTransactionInfo>
virtual catapult::cache::BasicTransactionsCacheModifier< TTransactionInfo >::~BasicTransactionsCacheModifier ( )
inlinevirtualnoexcept

Member Function Documentation

◆ add()

template<typename TTransactionInfo>
virtual bool catapult::cache::BasicTransactionsCacheModifier< TTransactionInfo >::add ( const TTransactionInfo &  transactionInfo)
pure virtual

Adds the transaction info (transactionInfo) to the cache. Returns true if the transaction info was successfully added.

◆ remove()

template<typename TTransactionInfo>
virtual TTransactionInfo catapult::cache::BasicTransactionsCacheModifier< TTransactionInfo >::remove ( const Hash256 hash)
pure virtual

Removes the transaction identified by hash from the cache.

◆ size()

template<typename TTransactionInfo>
virtual size_t catapult::cache::BasicTransactionsCacheModifier< TTransactionInfo >::size ( ) const
pure virtual

Returns the number of transactions in the cache.


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