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
constexpr bool operator==(ELseverityLevel const &e1, ELseverityLevel const &e2) noexcept
void swap(ProductID &other)
Definition: ProductID.cc:16
BranchDescription const & branchDescription() const
void swap(StableProvenance &)
void write(std::ostream &os) const
double b
Definition: hdecay.h:120
void write(std::ostream &os) const
HLT enums.
double a
Definition: hdecay.h:121
std::shared_ptr< BranchDescription const > branchDescription_