CMS 3D CMS Logo

StableProvenance.cc
Go to the documentation of this file.
4 
5 #include <algorithm>
6 #include <cassert>
7 
8 /*----------------------------------------------------------------------
9 
10 ----------------------------------------------------------------------*/
11 
12 namespace edm {
13 
14  StableProvenance::StableProvenance() : StableProvenance{std::shared_ptr<BranchDescription const>(), ProductID()} {}
15 
16  StableProvenance::StableProvenance(std::shared_ptr<BranchDescription const> const& p, ProductID const& pid)
17  : branchDescription_(p), productID_(pid) {}
18 
19  void StableProvenance::write(std::ostream& os) const {
20  // This is grossly inadequate, but it is not critical for the first pass.
22  }
23 
25  return a.branchDescription() == b.branchDescription();
26  }
27 
30  productID_.swap(iOther.productID_);
31  }
32 } // 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:28
edm::StableProvenance
Definition: StableProvenance.h:30
edm::StableProvenance::write
void write(std::ostream &os) const
Definition: StableProvenance.cc:19
edm::ProductID::swap
void swap(ProductID &other)
Definition: ProductID.cc:16
edm::StableProvenance::StableProvenance
StableProvenance()
Definition: StableProvenance.cc:14
edm::StableProvenance::productID_
ProductID productID_
Definition: StableProvenance.h:62
ParameterSet.h
StableProvenance.h
edm::ProductID
Definition: ProductID.h:27