hyperledger/iroha
Iroha - A simple, decentralized ledger http://iroha.tech
proto_peers_response.hpp
Go to the documentation of this file.
1 
6 #ifndef IROHA_SHARED_MODEL_PROTO_PEERS_RESPONSE_HPP
7 #define IROHA_SHARED_MODEL_PROTO_PEERS_RESPONSE_HPP
8 
10 
12 #include "qry_responses.pb.h"
13 
14 namespace shared_model {
15  namespace proto {
16  class PeersResponse final : public interface::PeersResponse {
17  public:
18  explicit PeersResponse(iroha::protocol::QueryResponse &query_response);
19 
21 
22  private:
23  const iroha::protocol::PeersResponse &peers_response_;
24 
25  std::vector<Peer> peers_;
26  };
27  } // namespace proto
28 } // namespace shared_model
29 
30 #endif // IROHA_SHARED_MODEL_PROTO_PEERS_RESPONSE_HPP
boost::any_range< Peer, boost::forward_traversal_tag, const Peer & > PeersForwardCollectionType
Definition: peers_response.hpp:18
Definition: peers_response.hpp:23
Definition: proto_peers_response.hpp:16
interface::PeersForwardCollectionType peers() const override
Definition: proto_peers_response.cpp:18
Definition: command_executor.hpp:12
PeersResponse(iroha::protocol::QueryResponse &query_response)
Definition: proto_peers_response.cpp:11