src
DataFormats
Provenance
src
ElementID.cc
Go to the documentation of this file.
1
#include "
DataFormats/Provenance/interface/ElementID.h
"
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
edm::operator<
bool operator<(DetSet< T > const &x, DetSet< T > const &y)
Definition:
DetSet.h:89
edm::ElementID
Definition:
ElementID.h:17
edm::ElementID::index
key_type index() const
Definition:
ElementID.h:26
ElementID.h
mathSSE::lh
bool int lh
Definition:
SIMDVec.h:20
edm::swap
void swap(Association< C > &lhs, Association< C > &rhs)
Definition:
Association.h:112
edm::ElementID::swap
void swap(ElementID &other)
Definition:
ElementID.cc:6
trackingPlots.other
other
Definition:
trackingPlots.py:1467
edm
HLT enums.
Definition:
AlignableModifier.h:19
edm::ElementID::index_
key_type index_
Definition:
ElementID.h:36
edm::ElementID::id_
ProductID id_
Definition:
ElementID.h:37
edm::operator<<
std::ostream & operator<<(std::ostream &ost, const HLTGlobalStatus &hlt)
Formatted printout of trigger table.
Definition:
HLTGlobalStatus.h:102
edm::ElementID::id
ProductID id() const
Definition:
ElementID.h:25
Generated for CMSSW Reference Manual by
1.8.14