CatapultServer
v0.5.0.1 (Elephant)
|
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::DetachedTransactionInfo > | prune (Timestamp timestamp) |
Removes all partial transactions that have deadlines at or before the given timestamp. More... | |
std::vector< model::DetachedTransactionInfo > | prune (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... | |
MoveOnly & | operator= (const MoveOnly &)=delete |
Disabled assignment operator. More... | |
MoveOnly & | operator= (MoveOnly &&)=default |
Default move assignment operator. More... | |
Additional Inherited Members | |
Protected Member Functions inherited from catapult::cache::BasicTransactionsCacheModifierProxy< model::DetachedTransactionInfo, PtCacheModifier > | |
PtCacheModifier & | modifier () |
Gets the modifier. More... | |
const PtCacheModifier & | modifier () const |
Gets the (const) modifier. More... | |
A delegating proxy around a PtCacheModifier.
using catapult::cache::PtCacheModifierProxy::BaseType = BasicTransactionsCacheModifierProxy<model::DetachedTransactionInfo, PtCacheModifier> |
|
inline |
Adds a cosignature (composed of signer and signature) for a partial transaction with hash parentHash to the cache.
|
inline |
Removes all partial transactions for which hashPredicate returns true
.
|
inline |
Removes all partial transactions that have deadlines at or before the given timestamp.