CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Member Functions | Public Attributes
edm::ProductData Struct Reference

#include <ProductData.h>

Public Member Functions

std::shared_ptr
< BranchDescription const >
const & 
branchDescription () const
 
 ProductData ()
 
 ProductData (std::shared_ptr< BranchDescription const > bd)
 
 ProductData (WrapperBase *product, Provenance const &prov)
 
void resetBranchDescription (std::shared_ptr< BranchDescription const > bd)
 
void resetProductData ()
 
void swap (ProductData &other)
 

Public Attributes

Provenance prov_
 
std::shared_ptr< WrapperBasewrapper_
 

Detailed Description

Definition at line 17 of file ProductData.h.

Constructor & Destructor Documentation

edm::ProductData::ProductData ( )

Definition at line 9 of file ProductData.cc.

9  :
10  wrapper_(),
11  prov_() {
12  }
Provenance prov_
Definition: ProductData.h:47
std::shared_ptr< WrapperBase > wrapper_
Definition: ProductData.h:46
edm::ProductData::ProductData ( std::shared_ptr< BranchDescription const >  bd)
explicit

Definition at line 14 of file ProductData.cc.

14  :
15  wrapper_(),
16  prov_(bd, ProductID()) {
17  }
Provenance prov_
Definition: ProductData.h:47
std::shared_ptr< WrapperBase > wrapper_
Definition: ProductData.h:46
edm::ProductData::ProductData ( WrapperBase product,
Provenance const &  prov 
)

Definition at line 20 of file ProductData.cc.

20  :
21  wrapper_(product, do_nothing_deleter()),
22  prov_(prov) {
23  }
Provenance prov_
Definition: ProductData.h:47
std::shared_ptr< WrapperBase > wrapper_
Definition: ProductData.h:46

Member Function Documentation

std::shared_ptr<BranchDescription const> const& edm::ProductData::branchDescription ( ) const
inline

Definition at line 25 of file ProductData.h.

References edm::Provenance::constBranchDescriptionPtr(), and prov_.

Referenced by edm::InputProductHolder::branchDescription_(), and edm::ProducedProductHolder::branchDescription_().

25  {
27  }
Provenance prov_
Definition: ProductData.h:47
std::shared_ptr< BranchDescription const > const & constBranchDescriptionPtr() const
Definition: Provenance.h:46
void edm::ProductData::resetBranchDescription ( std::shared_ptr< BranchDescription const >  bd)

Definition at line 26 of file ProductData.cc.

References prov_, and edm::Provenance::setBranchDescription().

Referenced by edm::InputProductHolder::resetBranchDescription_(), and edm::ProducedProductHolder::resetBranchDescription_().

26  {
28  }
void setBranchDescription(std::shared_ptr< BranchDescription const > const &p)
Definition: Provenance.h:86
Provenance prov_
Definition: ProductData.h:47
void edm::ProductData::resetProductData ( )
inline
void edm::ProductData::swap ( ProductData other)
inline

Definition at line 29 of file ProductData.h.

References prov_, edm::Provenance::swap(), std::swap(), and wrapper_.

Referenced by edm::swap().

29  {
30  std::swap(wrapper_, other.wrapper_);
31  prov_.swap(other.prov_);
32  }
Provenance prov_
Definition: ProductData.h:47
void swap(edm::DataFrameContainer &lhs, edm::DataFrameContainer &rhs)
std::shared_ptr< WrapperBase > wrapper_
Definition: ProductData.h:46
void swap(Provenance &)
Definition: Provenance.cc:84

Member Data Documentation

Provenance edm::ProductData::prov_
mutable
std::shared_ptr<WrapperBase> edm::ProductData::wrapper_
mutable