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

Public Types

using BaseType = BasicTransactionsCacheModifierProxy< model::DetachedTransactionInfo, PtCacheModifier >
 

Public Member Functions

model::DetachedTransactionInfo add (const Hash256 &parentHash, const Key &signer, const Signature &signature)
 Adds a cosignature (composed of signer and signature) for a partial transaction with hash parentHash to the cache. More...
 
std::vector< model::DetachedTransactionInfoprune (Timestamp timestamp)
 Removes all partial transactions that have deadlines at or before the given timestamp. More...
 
std::vector< model::DetachedTransactionInfoprune (const predicate< const Hash256 & > &hashPredicate)
 Removes all partial transactions for which hashPredicate returns true. More...
 
- Public Member Functions inherited from catapult::cache::BasicTransactionsCacheModifierProxy< model::DetachedTransactionInfo, PtCacheModifier >
 BasicTransactionsCacheModifierProxy (std::unique_ptr< PtCacheModifier > &&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::DetachedTransactionInfo &transactionInfo)
 
model::DetachedTransactionInfo 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::DetachedTransactionInfo, PtCacheModifier >
PtCacheModifiermodifier ()
 Gets the modifier. More...
 
const PtCacheModifiermodifier () const
 Gets the (const) modifier. More...
 

Detailed Description

A delegating proxy around a PtCacheModifier.

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

Member Typedef Documentation

◆ BaseType

Member Function Documentation

◆ add()

model::DetachedTransactionInfo catapult::cache::PtCacheModifierProxy::add ( const Hash256 parentHash,
const Key signer,
const Signature signature 
)
inline

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

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

◆ prune() [1/2]

std::vector<model::DetachedTransactionInfo> catapult::cache::PtCacheModifierProxy::prune ( const predicate< const Hash256 & > &  hashPredicate)
inline

Removes all partial transactions for which hashPredicate returns true.

Here is the call graph for this function:

◆ prune() [2/2]

std::vector<model::DetachedTransactionInfo> catapult::cache::PtCacheModifierProxy::prune ( Timestamp  timestamp)
inline

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

Here is the call graph for this function:

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