CatapultServer  v0.5.0.1 (Elephant)
catapult::cache::UtCacheModifierProxy Class Referencefinal
Inheritance diagram for catapult::cache::UtCacheModifierProxy:
Collaboration diagram for catapult::cache::UtCacheModifierProxy:

Public Member Functions

size_t count (const Key &key) const
 Gets the number of transactions an account with public key has placed into the cache. More...
 
std::vector< model::TransactionInforemoveAll ()
 Removes all transactions from the cache. More...
 
- Public Member Functions inherited from catapult::cache::BasicTransactionsCacheModifierProxy< model::TransactionInfo, UtCacheModifier >
 BasicTransactionsCacheModifierProxy (std::unique_ptr< UtCacheModifier > &&pModifier)
 Creates a transactions cache modifier around pModifier. More...
 
size_t size () const
 Returns the number of transactions in the cache. More...
 
bool add (const model::TransactionInfo &transactionInfo)
 
model::TransactionInfo remove (const Hash256 &hash)
 Removes the transaction identified by hash from the cache. More...
 
- Public Member Functions inherited from catapult::utils::MoveOnly
constexpr MoveOnly ()=default
 Default constructor. More...
 
 ~MoveOnly ()=default
 Default destructor. More...
 
 MoveOnly (const NonCopyable &)=delete
 Disabled copy constructor. More...
 
 MoveOnly (MoveOnly &&)=default
 Default move constructor. More...
 
MoveOnlyoperator= (const MoveOnly &)=delete
 Disabled assignment operator. More...
 
MoveOnlyoperator= (MoveOnly &&)=default
 Default move assignment operator. More...
 

Additional Inherited Members

- Protected Member Functions inherited from catapult::cache::BasicTransactionsCacheModifierProxy< model::TransactionInfo, UtCacheModifier >
UtCacheModifiermodifier ()
 Gets the modifier. More...
 
const UtCacheModifiermodifier () const
 Gets the (const) modifier. More...
 

Detailed Description

A delegating proxy around a UtCacheModifier.

Note
This is returned by value by UtCache::modifier in order to allow it to be consistent with other modifier functions.

Member Function Documentation

◆ count()

size_t catapult::cache::UtCacheModifierProxy::count ( const Key key) const
inline

Gets the number of transactions an account with public key has placed into the cache.

Here is the call graph for this function:

◆ removeAll()

std::vector<model::TransactionInfo> catapult::cache::UtCacheModifierProxy::removeAll ( )
inline

Removes all transactions from the cache.

Here is the call graph for this function:
Here is the caller graph for this function:

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