hyperledger/iroha
Iroha - A simple, decentralized ledger http://iroha.tech
iroha::ordering::cache::OnDemandCache Class Reference

#include "on_demand_cache.hpp"

Inheritance diagram for iroha::ordering::cache::OnDemandCache:
Inheritance graph
Collaboration diagram for iroha::ordering::cache::OnDemandCache:
Collaboration graph

Public Member Functions

void addToBack (const BatchesSetType &batches) override
 
BatchesSetType pop () override
 
void remove (const HashesSetType &hashes) override
 
virtual const BatchesSetTypehead () const override
 
virtual const BatchesSetTypetail () 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 >
 

Member Function Documentation

void OnDemandCache::addToBack ( const BatchesSetType batches)
overridevirtual

Concatenates batches from the tail of the queue with provided batches

Implements iroha::ordering::cache::OrderingGateCache.

const OrderingGateCache::BatchesSetType & OnDemandCache::head ( ) const
overridevirtual

Return the head batches

Implements iroha::ordering::cache::OrderingGateCache.

OrderingGateCache::BatchesSetType OnDemandCache::pop ( )
overridevirtual

Pops the head batches and returns them

Implements iroha::ordering::cache::OrderingGateCache.

void OnDemandCache::remove ( const HashesSetType hashes)
overridevirtual

Removes batches by provided hashes from the head of the queue

Implements iroha::ordering::cache::OrderingGateCache.

const OrderingGateCache::BatchesSetType & OnDemandCache::tail ( ) const
overridevirtual

Return the tail batches

Implements iroha::ordering::cache::OrderingGateCache.


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