#include <ProductHolder.h>
Public Types | |
enum | ProductStatus { Present = 0, NotRun = 3, NotCompleted = 4, NotPut = 5, UnscheduledNotRun = 6, ProductDeleted =7, Uninitialized = 0xff } |
Public Types inherited from edm::ProductHolderBase | |
enum | ResolveStatus { ProductFound, ProductNotFound, Ambiguous } |
Public Member Functions | |
ProducedProductHolder () | |
void | producerCompleted () |
void | producerStarted () |
ProductStatus & | status () const |
virtual | ~ProducedProductHolder () |
Public Member Functions inherited from edm::ProductHolderBase | |
BranchDescription const & | branchDescription () const |
void | checkType (WrapperBase const &prod) const |
void | mergeProduct (std::unique_ptr< WrapperBase > edp, ProductProvenance const &productProvenance) const |
void | mergeProduct (std::unique_ptr< WrapperBase > edp) const |
void | mergeTheProduct (std::unique_ptr< WrapperBase > edp) const |
std::string const & | moduleLabel () const |
bool | onDemand () const |
ProductHolderBase & | operator= (ProductHolderBase const &)=delete |
std::string const & | processName () const |
WrapperBase const * | product () const |
WrapperBase * | product () |
ProductData const & | productData () const |
ProductData & | productData () |
ProductHolderBase () | |
ProductHolderBase (ProductHolderBase const &)=delete | |
ProductID const & | productID () const |
std::string const & | productInstanceName () const |
ProductProvenance const * | productProvenancePtr () const |
TypeID | productType () const |
bool | productUnavailable () const |
bool | productWasDeleted () const |
Provenance const * | provenance () const |
bool | provenanceAvailable () const |
bool | putOrMergeProduct () const |
void | putProduct (std::unique_ptr< WrapperBase > edp, ProductProvenance const &productProvenance) const |
void | putProduct (std::unique_ptr< WrapperBase > edp) const |
void | reallyCheckType (WrapperBase const &prod) const |
void | resetBranchDescription (std::shared_ptr< BranchDescription const > bd) |
void | resetProductData () |
void | resetStatus () |
std::string const & | resolvedModuleLabel () const |
ProductData const * | resolveProduct (ResolveStatus &resolveStatus, Principal const &principal, bool skipCurrentProcess, SharedResourcesAcquirer *sra, ModuleCallingContext const *mcc) const |
void | setProcessHistory (ProcessHistory const &ph) |
void | setProductDeleted () |
void | setProvenance (ProductProvenanceRetriever const *provRetriever, ProcessHistory const &ph, ProductID const &pid) |
bool | singleProduct () const |
void | swap (ProductHolderBase &rhs) |
void | throwProductDeletedException () const |
void | unsafe_deleteProduct () const |
void | write (std::ostream &os) const |
virtual | ~ProductHolderBase () |
Private Member Functions | |
virtual BranchDescription const & | branchDescription_ () const override |
virtual void | checkType_ (WrapperBase const &prod) const override |
virtual void | mergeProduct_ (std::unique_ptr< WrapperBase > edp, ProductProvenance const &productProvenance) const override |
virtual void | mergeProduct_ (std::unique_ptr< WrapperBase > edp) const override |
virtual ProductProvenance const * | productProvenancePtr_ () const override |
virtual bool | productUnavailable_ () const override |
virtual bool | productWasDeleted_ () const override |
virtual bool | putOrMergeProduct_ () const override |
virtual void | putProduct_ (std::unique_ptr< WrapperBase > edp, ProductProvenance const &productProvenance) const override |
virtual void | putProduct_ (std::unique_ptr< WrapperBase > edp) const override |
virtual void | resetBranchDescription_ (std::shared_ptr< BranchDescription const > bd) override |
virtual void | resetProductData_ () override |
virtual std::string const & | resolvedModuleLabel_ () const override |
virtual void | setProcessHistory_ (ProcessHistory const &ph) override |
virtual void | setProductDeleted_ () const override |
virtual void | setProvenance_ (ProductProvenanceRetriever const *provRetriever, ProcessHistory const &ph, ProductID const &pid) override |
virtual bool | singleProduct_ () const override |
virtual ProductStatus & | status_ () const =0 |
Definition at line 269 of file ProductHolder.h.
Enumerator | |
---|---|
Present | |
NotRun | |
NotCompleted | |
NotPut | |
UnscheduledNotRun | |
ProductDeleted | |
Uninitialized |
Definition at line 271 of file ProductHolder.h.
|
inline |
Definition at line 280 of file ProductHolder.h.
|
virtual |
Definition at line 31 of file ProductHolder.cc.
|
inlineoverrideprivatevirtual |
Implements edm::ProductHolderBase.
Definition at line 298 of file ProductHolder.h.
References edm::ProductData::branchDescription(), and edm::ProductHolderBase::productData().
|
inlineoverrideprivatevirtual |
Implements edm::ProductHolderBase.
Definition at line 291 of file ProductHolder.h.
References edm::ProductHolderBase::reallyCheckType().
|
overrideprivatevirtual |
Implements edm::ProductHolderBase.
Definition at line 139 of file ProductHolder.cc.
References assert(), edm::ProductHolderBase::mergeTheProduct(), eostools::move(), Present, and status().
|
overrideprivatevirtual |
Implements edm::ProductHolderBase.
Definition at line 152 of file ProductHolder.cc.
References assert(), edm::ProductHolderBase::mergeTheProduct(), eostools::move(), Present, and status().
void edm::ProducedProductHolder::producerCompleted | ( | ) |
void edm::ProducedProductHolder::producerStarted | ( | ) |
|
overrideprivatevirtual |
Implements edm::ProductHolderBase.
Definition at line 309 of file ProductHolder.cc.
References edm::Provenance::productProvenance(), and edm::ProductHolderBase::provenance().
|
overrideprivatevirtual |
Implements edm::ProductHolderBase.
Definition at line 282 of file ProductHolder.cc.
References edm::WrapperBase::isPresent(), edm::ProductHolderBase::onDemand(), and edm::ProductHolderBase::product().
|
overrideprivatevirtual |
Implements edm::ProductHolderBase.
Definition at line 292 of file ProductHolder.cc.
References ProductDeleted, and status().
|
overrideprivatevirtual |
Implements edm::ProductHolderBase.
Definition at line 147 of file ProductHolder.cc.
References edm::ProductHolderBase::productUnavailable().
|
overrideprivatevirtual |
Implements edm::ProductHolderBase.
Definition at line 123 of file ProductHolder.cc.
References assert(), edm::ProductHolderBase::branchDescription(), edm::BranchDescription::branchName(), Exception, edm::errors::InsertFailure, eostools::move(), Present, edm::es::produced, edm::ProductHolderBase::product(), edm::ProductHolderBase::productData(), status(), status_(), Uninitialized, and edm::ProductData::unsafe_setWrapper().
|
overrideprivatevirtual |
Implements edm::ProductHolderBase.
Definition at line 158 of file ProductHolder.cc.
References assert(), edm::ProductHolderBase::branchDescription(), edm::BranchDescription::branchName(), Exception, edm::errors::InsertFailure, eostools::move(), Present, edm::es::produced, edm::ProductHolderBase::product(), edm::ProductHolderBase::productData(), status(), status_(), Uninitialized, and edm::ProductData::unsafe_setWrapper().
|
inlineoverrideprivatevirtual |
Implements edm::ProductHolderBase.
Definition at line 299 of file ProductHolder.h.
References edm::ProductHolderBase::productData(), and edm::ProductData::resetBranchDescription().
|
overrideprivatevirtual |
Implements edm::ProductHolderBase.
Definition at line 313 of file ProductHolder.cc.
References edm::ProductHolderBase::productData(), edm::ProductData::resetProductData(), and edm::ProductHolderBase::resetStatus().
|
inlineoverrideprivatevirtual |
Implements edm::ProductHolderBase.
Definition at line 300 of file ProductHolder.h.
References edm::ProductHolderBase::moduleLabel().
|
overrideprivatevirtual |
Implements edm::ProductHolderBase.
Definition at line 305 of file ProductHolder.cc.
References edm::ProductHolderBase::productData(), and edm::ProductData::setProcessHistory().
|
overrideprivatevirtual |
Implements edm::ProductHolderBase.
Definition at line 297 of file ProductHolder.cc.
References ProductDeleted, and status().
|
overrideprivatevirtual |
Implements edm::ProductHolderBase.
Definition at line 301 of file ProductHolder.cc.
References edm::ProductHolderBase::productData(), and edm::ProductData::setProvenance().
|
overrideprivatevirtual |
Implements edm::ProductHolderBase.
Definition at line 318 of file ProductHolder.cc.
|
inline |
Definition at line 284 of file ProductHolder.h.
References status_().
Referenced by mergeProduct_(), edm::UnscheduledProductHolder::onDemand_(), productWasDeleted_(), putProduct_(), setProductDeleted_(), and edm::AliasProductHolder::status().
|
privatepure virtual |
Implemented in edm::SourceProductHolder, edm::UnscheduledProductHolder, and edm::ScheduledProductHolder.
Referenced by putProduct_(), and status().