CMS 3D CMS Logo

StableProvenance.cc
Go to the documentation of this file.
3 
4 #include <algorithm>
5 #include <cassert>
6 
7 /*----------------------------------------------------------------------
8 
9 ----------------------------------------------------------------------*/
10 
11 namespace edm {
12 
13  StableProvenance::StableProvenance() : StableProvenance{std::shared_ptr<BranchDescription const>(), ProductID()} {}
14 
15  StableProvenance::StableProvenance(std::shared_ptr<BranchDescription const> const& p, ProductID const& pid)
16  : branchDescription_(p), productID_(pid) {}
17 
18  void StableProvenance::write(std::ostream& os) const {
19  // This is grossly inadequate, but it is not critical for the first pass.
21  }
22 
24  return a.branchDescription() == b.branchDescription();
25  }
26 
29  productID_.swap(iOther.productID_);
30  }
31 } // namespace edm
edm::StableProvenance::branchDescription_
std::shared_ptr< BranchDescription const > branchDescription_
Definition: StableProvenance.h:61
edm
HLT enums.
Definition: AlignableModifier.h:19
AlCaHLTBitMon_ParallelJobs.p
p
Definition: AlCaHLTBitMon_ParallelJobs.py:153
edm::BranchDescription::write
void write(std::ostream &os) const
Definition: BranchDescription.cc:257
ProcessConfiguration.h
edm::operator==
bool operator==(debugging_allocator< X > const &, debugging_allocator< Y > const &) noexcept
Definition: debugging_allocator.h:72
edm::StableProvenance::branchDescription
BranchDescription const & branchDescription() const
Definition: StableProvenance.h:36
b
double b
Definition: hdecay.h:118
a
double a
Definition: hdecay.h:119
edm::StableProvenance::swap
void swap(StableProvenance &)
Definition: StableProvenance.cc:27
edm::StableProvenance
Definition: StableProvenance.h:30
edm::StableProvenance::write
void write(std::ostream &os) const
Definition: StableProvenance.cc:18
edm::ProductID::swap
void swap(ProductID &other)
Definition: ProductID.cc:16
edm::StableProvenance::StableProvenance
StableProvenance()
Definition: StableProvenance.cc:13
edm::StableProvenance::productID_
ProductID productID_
Definition: StableProvenance.h:62
StableProvenance.h
edm::ProductID
Definition: ProductID.h:27