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
edm
HLT enums.
Definition: AlignableModifier.h:19
edm::swap
void swap(Association< C > &lhs, Association< C > &rhs)
Definition: Association.h:117
mathSSE::lh
bool int lh
Definition: SIMDVec.h:20
edm::operator<<
std::ostream & operator<<(std::ostream &ost, const HLTGlobalStatus &hlt)
Formatted printout of trigger tbale.
Definition: HLTGlobalStatus.h:106
edm::ElementID::index
key_type index() const
Definition: ElementID.h:26
std::swap
void swap(edm::DataFrameContainer &lhs, edm::DataFrameContainer &rhs)
Definition: DataFrameContainer.h:209
edm::operator<
bool operator<(DetSet< T > const &x, DetSet< T > const &y)
Definition: DetSet.h:89
trackingPlots.other
other
Definition: trackingPlots.py:1467
edm::ElementID::id_
ProductID id_
Definition: ElementID.h:37
edm::ElementID
Definition: ElementID.h:17
edm::ElementID::swap
void swap(ElementID &other)
Definition: ElementID.cc:6
edm::ElementID::index_
key_type index_
Definition: ElementID.h:36
ElementID.h
edm::ElementID::id
ProductID id() const
Definition: ElementID.h:25