CMS 3D CMS Logo

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