TypeLabelInstanceKey.h
Go to the documentation of this file.
1 #ifndef gallery_TypeLabelInstanceKey_h
2 #define gallery_TypeLabelInstanceKey_h
3 
5 
6 #include <string>
7 #include <tuple>
8 
9 namespace gallery {
10 
12  public:
14  std::string const& iLabel,
15  std::string const& iInstance)
16  : type_{iType}, label_{iLabel}, instance_{iInstance}
17  {}
18 
19  bool
20  operator<(TypeLabelInstanceKey const& iRHS) const
21  {
22  return std::tie(type_, label_, instance_) <
23  std::tie(iRHS.type_, iRHS.label_, iRHS.instance_);
24  }
25 
26  art::TypeID const&
27  typeID() const
28  {
29  return type_;
30  }
31  std::string const&
32  label() const
33  {
34  return label_;
35  }
36  std::string const&
37  instance() const
38  {
39  return instance_;
40  }
41 
42  private:
46  };
47 } // namespace gallery
48 #endif /* gallery_TypeLabelInstanceKey_h */
49 
50 // Local Variables:
51 // mode: c++
52 // End:
std::string string
Definition: nybbler.cc:12
TypeLabelInstanceKey(art::TypeID const &iType, std::string const &iLabel, std::string const &iInstance)
art::TypeID const & typeID() const
std::string const & instance() const
std::string const & label() const
bool operator<(TypeLabelInstanceKey const &iRHS) const