CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
ModuleProcessName.h
Go to the documentation of this file.
1 #ifndef FWCore_Framework_ModuleProcessName_h
2 #define FWCore_Framework_ModuleProcessName_h
3 
4 #include <string_view>
5 
6 namespace edm {
13  public:
14  explicit ModuleProcessName(std::string_view module, std::string_view process)
15  : moduleLabel_{module}, processName_{process} {}
16 
17  std::string_view moduleLabel() const { return moduleLabel_; }
18  std::string_view processName() const { return processName_; }
19 
20  private:
21  std::string_view moduleLabel_;
22  std::string_view processName_;
23  };
24 
25  inline bool operator<(ModuleProcessName const& a, ModuleProcessName const& b) {
26  return a.processName() == b.processName() ? a.moduleLabel() < b.moduleLabel() : a.processName() < b.processName();
27  }
28 } // namespace edm
29 
30 #endif
bool operator<(DetSet< T > const &x, DetSet< T > const &y)
Definition: DetSet.h:89
std::string_view moduleLabel_
std::string_view processName_
ModuleProcessName(std::string_view module, std::string_view process)
double b
Definition: hdecay.h:118
std::string_view processName() const
double a
Definition: hdecay.h:119
tuple process
Definition: LaserDQM_cfg.py:3
tuple module
Definition: callgraph.py:69
std::string_view moduleLabel() const