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

#include "temporary_wsv_impl.hpp"

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

Classes

struct  SavepointWrapperImpl
 

Public Member Functions

 TemporaryWsvImpl (std::unique_ptr< soci::session > sql, std::shared_ptr< shared_model::interface::CommonObjectsFactory > factory, std::shared_ptr< shared_model::interface::PermissionToString > perm_converter, logger::LoggerManagerTreePtr log_manager)
 
expected::Result< void, validation::CommandErrorapply (const shared_model::interface::Transaction &transaction) override
 
std::unique_ptr< TemporaryWsv::SavepointWrappercreateSavepoint (const std::string &name) override
 
 ~TemporaryWsvImpl () override
 
- Public Member Functions inherited from iroha::ametsuchi::TemporaryWsv
virtual ~TemporaryWsv ()=default
 

Friends

class StorageImpl
 

Constructor & Destructor Documentation

iroha::ametsuchi::TemporaryWsvImpl::TemporaryWsvImpl ( std::unique_ptr< soci::session >  sql,
std::shared_ptr< shared_model::interface::CommonObjectsFactory factory,
std::shared_ptr< shared_model::interface::PermissionToString perm_converter,
logger::LoggerManagerTreePtr  log_manager 
)

Here is the call graph for this function:

iroha::ametsuchi::TemporaryWsvImpl::~TemporaryWsvImpl ( )
override

Here is the call graph for this function:

Member Function Documentation

expected::Result< void, validation::CommandError > iroha::ametsuchi::TemporaryWsvImpl::apply ( const shared_model::interface::Transaction transaction)
overridevirtual

Applies a transaction to current state

Parameters
transactionTransaction to be applied
Returns
True if transaction was successfully applied, false otherwise

Implements iroha::ametsuchi::TemporaryWsv.

Here is the call graph for this function:

std::unique_ptr< TemporaryWsv::SavepointWrapper > iroha::ametsuchi::TemporaryWsvImpl::createSavepoint ( const std::string &  name)
overridevirtual

Create a savepoint for wsv state

Parameters
nameof savepoint to be created
Returns
RAII wrapper for savepoints

Implements iroha::ametsuchi::TemporaryWsv.

Here is the caller graph for this function:

Friends And Related Function Documentation

friend class StorageImpl
friend

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