test
CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
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:73
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:84
def move
Definition: eostools.py:510
void setWrapper(std::unique_ptr< WrapperBase > iValue)
Definition: ProductData.cc:31
std::shared_ptr< WrapperBase > wrapper_
Definition: ProductData.h:83