hyperledger/iroha
Iroha - A simple, decentralized ledger http://iroha.tech
shared_model::interface::ProposalFactory Class Referenceabstract

#include "proposal_factory.hpp"

Inheritance diagram for shared_model::interface::ProposalFactory:
Inheritance graph
Collaboration diagram for shared_model::interface::ProposalFactory:
Collaboration graph

Public Types

template<typename T >
using FactoryResult = iroha::expected::Result< T, std::string >
 
using TransactionsCollectionType = boost::any_range< Transaction, boost::forward_traversal_tag, const Transaction & >
 

Public Member Functions

virtual FactoryResult< std::unique_ptr< Proposal > > createProposal (types::HeightType height, types::TimestampType created_time, TransactionsCollectionType transactions)=0
 
virtual ~ProposalFactory ()=default
 

Detailed Description

ProposalFactory creates proposal

Member Typedef Documentation

template<typename T >
using shared_model::interface::ProposalFactory::FactoryResult = iroha::expected::Result<T, std::string>
using shared_model::interface::ProposalFactory::TransactionsCollectionType = boost::any_range<Transaction, boost::forward_traversal_tag, const Transaction &>

Constructor & Destructor Documentation

virtual shared_model::interface::ProposalFactory::~ProposalFactory ( )
virtualdefault

Member Function Documentation

virtual FactoryResult<std::unique_ptr<Proposal> > shared_model::interface::ProposalFactory::createProposal ( types::HeightType  height,
types::TimestampType  created_time,
TransactionsCollectionType  transactions 
)
pure virtual

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