CMS 3D CMS Logo

List of all members | Public Member Functions | Private Attributes
edm::ProductData Class 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)
 
Provenance const & provenance () const
 
void resetBranchDescription (std::shared_ptr< BranchDescription const > bd)
 
void resetProductData ()
 
void setMergeableRunProductMetadata (MergeableRunProductMetadataBase const *mrpm)
 
void setProductID (ProductID const &pid)
 
void setProvenance (ProductProvenanceRetriever const *provRetriever)
 
void setWrapper (std::unique_ptr< WrapperBase > iValue)
 
std::shared_ptr< WrapperBase const > sharedConstWrapper () const
 
void swap (ProductData &other)
 
void unsafe_resetProductData () const
 
void unsafe_setWrapper (std::shared_ptr< WrapperBase const > iValue) const
 
void unsafe_setWrapper (std::unique_ptr< WrapperBase > iValue) const
 
WrapperBaseunsafe_wrapper () const
 
WrapperBase const * wrapper () const
 

Private Attributes

Provenance prov_
 
std::shared_ptr< WrapperBase const > wrapper_
 

Detailed Description

Definition at line 20 of file ProductData.h.

Constructor & Destructor Documentation

◆ ProductData() [1/3]

edm::ProductData::ProductData ( )

Definition at line 12 of file ProductData.cc.

12 : wrapper_(), prov_() {}

◆ ProductData() [2/3]

edm::ProductData::ProductData ( std::shared_ptr< BranchDescription const >  bd)
explicit

Definition at line 14 of file ProductData.cc.

14 : wrapper_(), prov_(bd, ProductID()) {}

◆ ProductData() [3/3]

edm::ProductData::ProductData ( WrapperBase product,
Provenance const &  prov 
)

Definition at line 17 of file ProductData.cc.

18  : wrapper_(product, do_nothing_deleter()), prov_(prov) {}

Member Function Documentation

◆ branchDescription()

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

◆ provenance()

Provenance const& edm::ProductData::provenance ( ) const
inline

◆ resetBranchDescription()

void edm::ProductData::resetBranchDescription ( std::shared_ptr< BranchDescription const >  bd)

◆ resetProductData()

void edm::ProductData::resetProductData ( )
inline

◆ setMergeableRunProductMetadata()

void edm::ProductData::setMergeableRunProductMetadata ( MergeableRunProductMetadataBase const *  mrpm)
inline

◆ setProductID()

void edm::ProductData::setProductID ( ProductID const &  pid)
inline

◆ setProvenance()

void edm::ProductData::setProvenance ( ProductProvenanceRetriever const *  provRetriever)
inline

◆ setWrapper()

void edm::ProductData::setWrapper ( std::unique_ptr< WrapperBase iValue)

Definition at line 24 of file ProductData.cc.

24 { wrapper_ = std::move(iValue); }

References eostools::move(), and wrapper_.

◆ sharedConstWrapper()

std::shared_ptr<WrapperBase const> edm::ProductData::sharedConstWrapper ( ) const
inline

Definition at line 37 of file ProductData.h.

37 { return wrapper_; }

References wrapper_.

◆ swap()

void edm::ProductData::swap ( ProductData other)
inline

Definition at line 39 of file ProductData.h.

39  {
40  std::swap(wrapper_, other.wrapper_);
41  prov_.swap(other.prov_);
42  }

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

◆ unsafe_resetProductData()

void edm::ProductData::unsafe_resetProductData ( ) const
inline

Definition at line 54 of file ProductData.h.

54 { wrapper_.reset(); }

References wrapper_.

◆ unsafe_setWrapper() [1/2]

void edm::ProductData::unsafe_setWrapper ( std::shared_ptr< WrapperBase const >  iValue) const

Definition at line 29 of file ProductData.cc.

29 { wrapper_ = std::move(iValue); }

References eostools::move(), and wrapper_.

◆ unsafe_setWrapper() [2/2]

void edm::ProductData::unsafe_setWrapper ( std::unique_ptr< WrapperBase iValue) const

◆ unsafe_wrapper()

WrapperBase* edm::ProductData::unsafe_wrapper ( ) const
inline

Definition at line 36 of file ProductData.h.

36 { return const_cast<WrapperBase*>(wrapper_.get()); }

References wrapper_.

Referenced by edm::DataManagingProductResolver::mergeProduct().

◆ wrapper()

WrapperBase const* edm::ProductData::wrapper ( ) const
inline

Member Data Documentation

◆ prov_

Provenance edm::ProductData::prov_
private

◆ wrapper_

std::shared_ptr<WrapperBase const> edm::ProductData::wrapper_
mutableprivate
edm::ProductData::wrapper_
std::shared_ptr< WrapperBase const > wrapper_
Definition: ProductData.h:71
deep_tau::DeepTauBase::BasicDiscriminator
BasicDiscriminator
Definition: DeepTauBase.h:115
edm::Provenance::setBranchDescription
void setBranchDescription(std::shared_ptr< BranchDescription const > const &p)
Definition: Provenance.h:87
std::swap
void swap(edm::DataFrameContainer &lhs, edm::DataFrameContainer &rhs)
Definition: DataFrameContainer.h:209
trackingPlots.other
other
Definition: trackingPlots.py:1467
edm::ProductData::prov_
Provenance prov_
Definition: ProductData.h:72
edm::Provenance::setStore
void setStore(ProductProvenanceRetriever const *store)
Definition: Provenance.h:77
eostools.move
def move(src, dest)
Definition: eostools.py:511
edm::Provenance::constBranchDescriptionPtr
std::shared_ptr< BranchDescription const > const & constBranchDescriptionPtr() const
Definition: Provenance.h:46
edm::Provenance::setProductID
void setProductID(ProductID const &pid)
Definition: Provenance.h:81
edm::Provenance::swap
void swap(Provenance &)
Definition: Provenance.cc:53
edm::Provenance::setMergeableRunProductMetadata
void setMergeableRunProductMetadata(MergeableRunProductMetadataBase const *mrpm)
Definition: Provenance.h:83