hyperledger/iroha
Iroha - A simple, decentralized ledger http://iroha.tech
proto_ref.hpp
Go to the documentation of this file.
1 
6 #ifndef IROHA_SHARED_MODEL_PROTO_REF_HPP
7 #define IROHA_SHARED_MODEL_PROTO_REF_HPP
8 
9 namespace shared_model {
10  namespace proto {
16  template <typename Iface, typename Proto>
17  class ProtoRef : public Iface {
18  public:
19  using TransportType = Proto;
20 
21  /*
22  * Construct object from transport.
23  */
24  explicit ProtoRef(Proto &ref) : proto_(ref) {}
25 
26  Proto &proto_;
27  };
28  } // namespace proto
29 } // namespace shared_model
30 
31 #endif // IROHA_SHARED_MODEL_PROTO_REF_HPP
Definition: proto_ref.hpp:17
Proto TransportType
Definition: proto_ref.hpp:19
ProtoRef(Proto &ref)
Definition: proto_ref.hpp:24
Proto & proto_
Definition: proto_ref.hpp:26
Definition: command_executor.hpp:12