CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
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
BranchDescription const & branchDescription() const
void write(std::ostream &os) const
void swap(ProductID &other)
Definition: ProductID.cc:16
void write(std::ostream &os) const
void swap(StableProvenance &)
double b
Definition: hdecay.h:118
double a
Definition: hdecay.h:119
std::shared_ptr< BranchDescription const > branchDescription_