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 }
bool operator<(DetSet< T > const &x, DetSet< T > const &y)
Definition: DetSet.h:92
bool int lh
Definition: SIMDVec.h:21
void swap(Association< C > &lhs, Association< C > &rhs)
Definition: Association.h:116
void swap(ElementID &other)
Definition: ElementID.cc:6
void swap(edm::DataFrameContainer &lhs, edm::DataFrameContainer &rhs)
ProductID id() const
Definition: ElementID.h:25
key_type index() const
Definition: ElementID.h:26
HLT enums.
key_type index_
Definition: ElementID.h:33
ProductID id_
Definition: ElementID.h:34
std::ostream & operator<<(std::ostream &ost, const HLTGlobalStatus &hlt)
Formatted printout of trigger tbale.