CMS 3D CMS Logo

ElementID.cc
Go to the documentation of this file.
2 #include <algorithm>
3 #include <ostream>
4 
5 namespace edm {
7  std::swap(index_, other.index_);
8  edm::swap(id_, other.id_);
9  }
10 
11  bool operator<(ElementID const& lh, ElementID const& rh) {
12  return lh.id() < rh.id() || (lh.id() == rh.id() && lh.index() < rh.index());
13  }
14 
15  std::ostream& operator<<(std::ostream& os, ElementID const& id) {
16  os << id.id() << ":" << id.index();
17  return os;
18  }
19 } // namespace edm
bool operator<(DetSet< T > const &x, DetSet< T > const &y)
Definition: DetSet.h:89
key_type index() const
Definition: ElementID.h:26
bool int lh
Definition: SIMDVec.h:20
void swap(Association< C > &lhs, Association< C > &rhs)
Definition: Association.h:117
void swap(ElementID &other)
Definition: ElementID.cc:6
void swap(edm::DataFrameContainer &lhs, edm::DataFrameContainer &rhs)
HLT enums.
key_type index_
Definition: ElementID.h:36
ProductID id_
Definition: ElementID.h:37
std::ostream & operator<<(std::ostream &ost, const HLTGlobalStatus &hlt)
Formatted printout of trigger tbale.
ProductID id() const
Definition: ElementID.h:25