hyperledger/iroha
Iroha - A simple, decentralized ledger http://iroha.tech
transactions_page_response.hpp
Go to the documentation of this file.
1 
6 #ifndef IROHA_SHARED_MODEL_TRANSACTIONS_PAGE_RESPONSE_HPP
7 #define IROHA_SHARED_MODEL_TRANSACTIONS_PAGE_RESPONSE_HPP
8 
10 
11 #include <optional>
14 
15 namespace shared_model {
16  namespace interface {
21  : public ModelPrimitive<TransactionsPageResponse> {
22  public:
27 
31  virtual std::optional<interface::types::HashType> nextTxHash() const = 0;
32 
37  const = 0;
38 
39  std::string toString() const override;
40 
41  bool operator==(const ModelType &rhs) const override;
42  };
43  } // namespace interface
44 } // namespace shared_model
45 #endif // IROHA_SHARED_MODEL_TRANSACTIONS_PAGE_RESPONSE_HPP
Definition: transactions_page_response.hpp:20
TransactionsPageResponse ModelType
Definition: model_primitive.hpp:27
virtual interface::types::TransactionsNumberType allTransactionsSize() const =0
bool operator==(const ModelType &rhs) const override
Definition: transactions_page_response.cpp:21
uint16_t TransactionsNumberType
Type of a number of transactions in block and query response page.
Definition: types.hpp:86
Definition: model_primitive.hpp:22
std::string toString() const override
Definition: transactions_page_response.cpp:12
Definition: command_executor.hpp:13
boost::any_range< Transaction, boost::random_access_traversal_tag, Transaction & > TransactionsCollectionType
Type of transactions&#39; collection.
Definition: range_types.hpp:29
virtual types::TransactionsCollectionType transactions() const =0
virtual std::optional< interface::types::HashType > nextTxHash() const =0