hyperledger/iroha
Iroha - A simple, decentralized ledger http://iroha.tech
transaction_sequence_common.hpp
Go to the documentation of this file.
1 
6 #ifndef IROHA_TRANSACTION_SEQUENCE_COMMON_HPP
7 #define IROHA_TRANSACTION_SEQUENCE_COMMON_HPP
8 
9 #include <memory>
10 #include <vector>
11 
12 #include <boost/range/any_range.hpp>
13 
14 namespace shared_model {
15  namespace interface {
16 
17  class Transaction;
18  class TransactionBatch;
19 
20  namespace types {
21 
23  boost::any_range<Transaction,
24  boost::forward_traversal_tag,
25  const Transaction &>;
26 
27  using SharedTxsCollectionType = std::vector<std::shared_ptr<Transaction>>;
28 
29  using BatchesCollectionType =
30  std::vector<std::shared_ptr<TransactionBatch>>;
31  } // namespace types
32  } // namespace interface
33 } // namespace shared_model
34 
35 #endif // IROHA_TRANSACTION_SEQUENCE_COMMON_HPP
boost::any_range< Transaction, boost::forward_traversal_tag, const Transaction & > TransactionsForwardCollectionType
Definition: transaction_sequence_common.hpp:25
Definition: range_types.hpp:19
std::vector< std::shared_ptr< TransactionBatch >> BatchesCollectionType
Definition: transaction_sequence_common.hpp:30
Definition: command_executor.hpp:12
std::vector< std::shared_ptr< Transaction >> SharedTxsCollectionType
Definition: transaction_sequence_common.hpp:27