CMS 3D CMS Logo

All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
ElementID.cc
Go to the documentation of this file.
2 #include <algorithm>
3 #include <ostream>
4 
5 namespace edm {
6  void ElementID::swap(ElementID& other) {
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
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)
ProductID id() const
Definition: ElementID.h:25
key_type index() const
Definition: ElementID.h:26
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.