CatapultServer  v0.5.0.1 (Elephant)
MemoryUtCacheUtils.h
Go to the documentation of this file.
1 
21 #pragma once
22 #include "MemoryUtCache.h"
23 
24 namespace catapult { namespace cache {
25 
28  std::vector<const model::TransactionInfo*> GetFirstTransactionInfoPointers(const MemoryUtCacheView& utCacheView, uint32_t count);
29 
32  std::vector<const model::TransactionInfo*> GetFirstTransactionInfoPointers(
33  const MemoryUtCacheView& utCacheView,
34  uint32_t count,
35  const predicate<const model::TransactionInfo&>& filter);
36 
39  std::vector<const model::TransactionInfo*> GetFirstTransactionInfoPointers(
40  const MemoryUtCacheView& utCacheView,
41  uint32_t count,
42  const predicate<const model::TransactionInfo*, const model::TransactionInfo*>& sortComparer,
43  const predicate<const model::TransactionInfo&>& filter);
44 }}
catapult::cache::MemoryUtCacheView::size
size_t size() const
Returns the number of unconfirmed transactions in the cache.
Definition: MemoryUtCache.cpp:63
catapult::predicate
std::function< bool(TArgs...)> predicate
A predicate function.
Definition: functions.h:31
MemoryUtCache.h
catapult::cache::MemoryUtCacheView::forEach
void forEach(const TransactionInfoConsumer &consumer) const
Calls consumer with all transaction infos until all are consumed or false is returned by consumer.
Definition: MemoryUtCache.cpp:71
MemoryUtCacheUtils.h
catapult::cache::MemoryUtCacheView
A read only view on top of unconfirmed transactions cache.
Definition: MemoryUtCache.h:40
catapult
Definition: AddressExtractionExtension.cpp:28
catapult::cache::GetFirstTransactionInfoPointers
std::vector< const model::TransactionInfo * > GetFirstTransactionInfoPointers(const MemoryUtCacheView &utCacheView, uint32_t count)
Definition: MemoryUtCacheUtils.cpp:25