CMS 3D CMS Logo

ProductID.cc
Go to the documentation of this file.
2 #include <ostream>
3 #include <algorithm>
4 
5 namespace edm {
6  std::ostream& operator<<(std::ostream& os, ProductID const& id) {
7  os << id.processIndex() << ":" << id.productIndex();
8  return os;
9  }
10 
11  bool operator<(ProductID const& lh, ProductID const& rh) {
12  return lh.processIndex() < rh.processIndex() ||
13  (lh.processIndex() == rh.processIndex() && lh.productIndex() < rh.productIndex());
14  }
15 
17  std::swap(processIndex_, other.processIndex_);
18  std::swap(productIndex_, other.productIndex_);
19  }
20 } // namespace edm
bool operator<(DetSet< T > const &x, DetSet< T > const &y)
Definition: DetSet.h:89
bool int lh
Definition: SIMDVec.h:27
void swap(ProductID &other)
Definition: ProductID.cc:16
void swap(Association< C > &lhs, Association< C > &rhs)
Definition: Association.h:112
ProductIndex productIndex_
Definition: ProductID.h:42
ProcessIndex processIndex_
Definition: ProductID.h:41
ProcessIndex processIndex() const
Definition: ProductID.h:33
HLT enums.
ProcessIndex productIndex() const
Definition: ProductID.h:34
std::ostream & operator<<(std::ostream &ost, const HLTGlobalStatus &hlt)
Formatted printout of trigger table.