hyperledger/iroha
Iroha - A simple, decentralized ledger http://iroha.tech
proto_transactions_page_response.hpp
Go to the documentation of this file.
1 
6 #ifndef IROHA_SHARED_MODEL_PROTO_TRANSACTION_PAGE_RESPONSE_HPP
7 #define IROHA_SHARED_MODEL_PROTO_TRANSACTION_PAGE_RESPONSE_HPP
8 
10 
14 #include "qry_responses.pb.h"
15 
16 namespace shared_model {
17  namespace proto {
19  : public CopyableProto<interface::TransactionsPageResponse,
20  iroha::protocol::QueryResponse,
21  TransactionsPageResponse> {
22  public:
23  template <typename QueryResponseType>
24  explicit TransactionsPageResponse(QueryResponseType &&queryResponse);
25 
27 
29 
31  const override;
32 
33  boost::optional<interface::types::HashType> nextTxHash() const override;
34 
36  const override;
37 
38  private:
39  const iroha::protocol::TransactionsPageResponse &transactionPageResponse_;
40  const std::vector<proto::Transaction> transactions_;
41  boost::optional<interface::types::HashType> next_hash_;
42  };
43  } // namespace proto
44 } // namespace shared_model
45 
46 #endif // IROHA_SHARED_MODEL_PROTO_TRANSACTION_PAGE_RESPONSE_HPP
boost::optional< interface::types::HashType > nextTxHash() const override
Definition: proto_transaction_page_response.cpp:50
interface::types::TransactionsCollectionType transactions() const override
Definition: proto_transaction_page_response.cpp:45
Definition: proto_transactions_page_response.hpp:18
uint16_t TransactionsNumberType
Type of a number of transactions in block and query response page.
Definition: types.hpp:77
interface::types::TransactionsNumberType allTransactionsSize() const override
Definition: proto_transaction_page_response.cpp:55
Definition: command_executor.hpp:12
Definition: trivial_proto.hpp:45
TransactionsPageResponse(QueryResponseType &&queryResponse)
Definition: proto_transaction_page_response.cpp:13
boost::any_range< Transaction, boost::random_access_traversal_tag, const Transaction & > TransactionsCollectionType
Type of transactions&#39; collection.
Definition: range_types.hpp:29