hyperledger/iroha
Iroha - A simple, decentralized ledger http://iroha.tech
peers_response.hpp
Go to the documentation of this file.
1 
6 #ifndef IROHA_SHARED_MODEL_PEERS_RESPONSE_HPP
7 #define IROHA_SHARED_MODEL_PEERS_RESPONSE_HPP
8 
10 
11 #include <boost/range/any_range.hpp>
13 
14 namespace shared_model {
15  namespace interface {
16 
18  boost::any_range<Peer, boost::forward_traversal_tag, const Peer &>;
19 
23  class PeersResponse : public ModelPrimitive<PeersResponse> {
24  public:
28  virtual PeersForwardCollectionType peers() const = 0;
29 
30  std::string toString() const override;
31 
32  bool operator==(const ModelType &rhs) const override;
33  };
34  } // namespace interface
35 } // namespace shared_model
36 #endif // IROHA_SHARED_MODEL_PEERS_RESPONSE_HPP
bool operator==(const ModelType &rhs) const override
Definition: peers_response.cpp:20
PeersResponse ModelType
Definition: model_primitive.hpp:27
boost::any_range< Peer, boost::forward_traversal_tag, const Peer & > PeersForwardCollectionType
Definition: peers_response.hpp:18
std::string toString() const override
Definition: peers_response.cpp:13
Definition: peers_response.hpp:23
Definition: model_primitive.hpp:22
Definition: command_executor.hpp:12
virtual PeersForwardCollectionType peers() const =0