hyperledger/iroha
Iroha - A simple, decentralized ledger http://iroha.tech
proto_pending_transactions_page_response.hpp
Go to the documentation of this file.
1 
6 #ifndef IROHA_SHARED_MODEL_PROTO_PENDING_TRANSACTIONS_PAGE_RESPONSE_HPP
7 #define IROHA_SHARED_MODEL_PROTO_PENDING_TRANSACTIONS_PAGE_RESPONSE_HPP
8 
10 
13 #include "qry_responses.pb.h"
14 
15 namespace shared_model {
16  namespace proto {
19  public:
21  iroha::protocol::QueryResponse &query_response);
22 
24  const override;
25 
26  boost::optional<interface::PendingTransactionsPageResponse::BatchInfo>
27  nextBatchInfo() const override;
28 
30  const override;
31 
32  private:
33  const iroha::protocol::PendingTransactionsPageResponse
34  &pending_transactions_page_response_;
35  const std::vector<Transaction> transactions_;
36  boost::optional<interface::PendingTransactionsPageResponse::BatchInfo>
37  next_batch_info_;
38  };
39  } // namespace proto
40 } // namespace shared_model
41 
42 #endif // IROHA_SHARED_MODEL_PROTO_PENDING_TRANSACTIONS_PAGE_RESPONSE_HPP
Definition: pending_transactions_page_response.hpp:22
boost::optional< interface::PendingTransactionsPageResponse::BatchInfo > nextBatchInfo() const override
Definition: proto_pending_transactions_page_response.cpp:46
interface::types::TransactionsNumberType allTransactionsSize() const override
Definition: proto_pending_transactions_page_response.cpp:51
Definition: proto_pending_transactions_page_response.hpp:17
PendingTransactionsPageResponse(iroha::protocol::QueryResponse &query_response)
Definition: proto_pending_transactions_page_response.cpp:12
interface::types::TransactionsCollectionType transactions() const override
Definition: proto_pending_transactions_page_response.cpp:41
uint16_t TransactionsNumberType
Type of a number of transactions in block and query response page.
Definition: types.hpp:90
Definition: command_executor.hpp:12
boost::any_range< Transaction, boost::random_access_traversal_tag, const Transaction & > TransactionsCollectionType
Type of transactions&#39; collection.
Definition: range_types.hpp:29