#include "on_demand_cache.hpp"


Public Member Functions | |
| void | addToBack (const BatchesSetType &batches) override |
| BatchesSetType | pop () override |
| void | remove (const HashesSetType &hashes) override |
| virtual const BatchesSetType & | head () const override |
| virtual const BatchesSetType & | tail () const override |
Public Member Functions inherited from iroha::ordering::cache::OrderingGateCache | |
| virtual | ~OrderingGateCache ()=default |
Additional Inherited Members | |
Public Types inherited from iroha::ordering::cache::OrderingGateCache | |
| using | BatchesSetType = std::unordered_set< std::shared_ptr< shared_model::interface::TransactionBatch >, BatchPointerHasher > |
| using | HashesSetType = std::unordered_set< shared_model::crypto::Hash, shared_model::crypto::Hash::Hasher > |
|
overridevirtual |
Concatenates batches from the tail of the queue with provided batches
Implements iroha::ordering::cache::OrderingGateCache.
|
overridevirtual |
Return the head batches
Implements iroha::ordering::cache::OrderingGateCache.
|
overridevirtual |
Pops the head batches and returns them
Implements iroha::ordering::cache::OrderingGateCache.
|
overridevirtual |
Removes batches by provided hashes from the head of the queue
Implements iroha::ordering::cache::OrderingGateCache.
|
overridevirtual |
Return the tail batches
Implements iroha::ordering::cache::OrderingGateCache.