hyperledger/iroha
Iroha - A simple, decentralized ledger http://iroha.tech
iroha::ametsuchi::PostgresTemporaryBlockStorage Class Reference

#include "postgres_block_storage.hpp"

Inheritance diagram for iroha::ametsuchi::PostgresTemporaryBlockStorage:
Inheritance graph
Collaboration diagram for iroha::ametsuchi::PostgresTemporaryBlockStorage:
Collaboration graph

Public Member Functions

 PostgresTemporaryBlockStorage (std::shared_ptr< PoolWrapper > pool_wrapper, std::shared_ptr< BlockTransportFactory > block_factory, std::string table, logger::LoggerPtr log)
 
 ~PostgresTemporaryBlockStorage () override
 
- Public Member Functions inherited from iroha::ametsuchi::PostgresBlockStorage
 PostgresBlockStorage (std::shared_ptr< PoolWrapper > pool_wrapper, std::shared_ptr< BlockTransportFactory > block_factory, std::string table, logger::LoggerPtr log)
 
bool insert (std::shared_ptr< const shared_model::interface::Block > block) override
 
boost::optional< std::shared_ptr< const shared_model::interface::Block > > fetch (shared_model::interface::types::HeightType height) const override
 
size_t size () const override
 
void clear () override
 
void forEach (FunctionType function) const override
 
- Public Member Functions inherited from iroha::ametsuchi::BlockStorage
virtual ~BlockStorage ()=default
 

Additional Inherited Members

- Public Types inherited from iroha::ametsuchi::PostgresBlockStorage
using BlockTransportFactory = shared_model::proto::ProtoBlockFactory
 
- Public Types inherited from iroha::ametsuchi::BlockStorage
using FunctionType = std::function< void(std::shared_ptr< const shared_model::interface::Block >)>
 type of function which can be applied to the elements of the storage More...
 
- Protected Attributes inherited from iroha::ametsuchi::PostgresBlockStorage
std::shared_ptr< PoolWrapperpool_wrapper_
 
std::shared_ptr< BlockTransportFactoryblock_factory_
 
std::string table_
 
logger::LoggerPtr log_
 

Constructor & Destructor Documentation

PostgresTemporaryBlockStorage::PostgresTemporaryBlockStorage ( std::shared_ptr< PoolWrapper pool_wrapper,
std::shared_ptr< BlockTransportFactory block_factory,
std::string  table,
logger::LoggerPtr  log 
)
PostgresTemporaryBlockStorage::~PostgresTemporaryBlockStorage ( )
override

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