CMS 3D CMS Logo

ProductData.cc
Go to the documentation of this file.
1 /*----------------------------------------------------------------------
2 ----------------------------------------------------------------------*/
4 
8 
9 #include <algorithm>
10 
11 namespace edm {
12  ProductData::ProductData() : wrapper_(), prov_() {}
13 
14  ProductData::ProductData(std::shared_ptr<BranchDescription const> bd) : wrapper_(), prov_(bd, ProductID()) {}
15 
16  // For use by FWLite
18  : wrapper_(product, do_nothing_deleter()), prov_(prov) {}
19 
20  void ProductData::resetBranchDescription(std::shared_ptr<BranchDescription const> bd) {
22  }
23 
24  void ProductData::setWrapper(std::unique_ptr<WrapperBase> iValue) { wrapper_ = std::move(iValue); }
25 
26  //Not const thread-safe update
27  void ProductData::unsafe_setWrapper(std::unique_ptr<WrapperBase> iValue) const { wrapper_ = std::move(iValue); }
28 
29  void ProductData::unsafe_setWrapper(std::shared_ptr<WrapperBase const> iValue) const { wrapper_ = std::move(iValue); }
30 } // namespace edm
void setBranchDescription(std::shared_ptr< BranchDescription const > const &p)
Definition: Provenance.h:93
std::shared_ptr< WrapperBase const > wrapper_
Definition: ProductData.h:75
void resetBranchDescription(std::shared_ptr< BranchDescription const > bd)
Definition: ProductData.cc:20
void unsafe_setWrapper(std::unique_ptr< WrapperBase > iValue) const
Definition: ProductData.cc:27
Provenance prov_
Definition: ProductData.h:76
void setWrapper(std::unique_ptr< WrapperBase > iValue)
Definition: ProductData.cc:24
HLT enums.
def move(src, dest)
Definition: eostools.py:511