CMS 3D CMS Logo

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