#include <ProductResolvers.h>
Public Types | |
enum | ProductStatus { ProductStatus::ProductSet, ProductStatus::NotPut, ProductStatus::ResolveFailed, ProductStatus::ResolveNotRun, ProductStatus::ProductDeleted } |
Public Member Functions | |
virtual void | connectTo (ProductResolverBase const &, Principal const *) overridefinal |
DataManagingProductResolver (std::shared_ptr< BranchDescription const > bd, ProductStatus iDefaultStatus) | |
virtual void | resetProductData_ (bool deleteEarly) override |
void | resetStatus () |
template<bool callResolver, typename FUNC > | |
ProductResolverBase::Resolution | resolveProductImpl (FUNC resolver) const |
Public Member Functions inherited from edm::ProductResolverBase | |
BranchDescription const & | branchDescription () const |
std::string const & | moduleLabel () const |
ProductResolverBase & | operator= (ProductResolverBase const &)=delete |
void | prefetchAsync (WaitingTask *waitTask, Principal const &principal, bool skipCurrentProcess, SharedResourcesAcquirer *sra, ModuleCallingContext const *mcc) const |
std::string const & | processName () const |
ProductID const & | productID () const |
std::string const & | productInstanceName () const |
ProductProvenance const * | productProvenancePtr () const |
bool | productResolved () const |
ProductResolverBase () | |
ProductResolverBase (ProductResolverBase const &)=delete | |
TypeID | productType () const |
bool | productUnavailable () const |
bool | productWasDeleted () const |
bool | productWasFetchedAndIsValid (bool iSkipCurrentProcess) const |
Provenance const * | provenance () const |
bool | provenanceAvailable () const |
void | putOrMergeProduct (std::unique_ptr< WrapperBase > edp) const |
void | putProduct (std::unique_ptr< WrapperBase > edp) const |
void | resetBranchDescription (std::shared_ptr< BranchDescription const > bd) |
virtual void | resetFailedFromThisProcess () |
void | resetProductData () |
std::string const & | resolvedModuleLabel () const |
Resolution | resolveProduct (Principal const &principal, bool skipCurrentProcess, SharedResourcesAcquirer *sra, ModuleCallingContext const *mcc) const |
void | retrieveAndMerge (Principal const &principal) const |
void | setProcessHistory (ProcessHistory const &ph) |
void | setProvenance (ProductProvenanceRetriever const *provRetriever, ProcessHistory const &ph, ProductID const &pid) |
virtual void | setupUnscheduled (UnscheduledConfigurator const &) |
bool | singleProduct () const |
StableProvenance const * | stableProvenance () const |
void | unsafe_deleteProduct () const |
bool | unscheduledWasNotRun () const |
void | write (std::ostream &os) const |
virtual | ~ProductResolverBase () |
Protected Member Functions | |
ProductStatus | defaultStatus () const |
template<bool callResolver, typename FUNC > | |
Resolution | resolveProductImpl (FUNC resolver) const |
void | setFailedStatus () const |
void | setProduct (std::unique_ptr< WrapperBase > edp) const |
ProductStatus | status () const |
Private Member Functions | |
virtual BranchDescription const & | branchDescription_ () const overridefinal |
void | checkType (WrapperBase const &prod) const |
ProductData const & | getProductData () const |
virtual bool | isFromCurrentProcess () const =0 |
void | mergeProduct (std::unique_ptr< WrapperBase > edp) const |
virtual ProductProvenance const * | productProvenancePtr_ () const overridefinal |
virtual bool | productResolved_ () const overridefinal |
virtual bool | productUnavailable_ () const overridefinal |
virtual bool | productWasDeleted_ () const overridefinal |
virtual bool | productWasFetchedAndIsValid_ (bool iSkipCurrentProcess) const overridefinal |
virtual Provenance const * | provenance_ () const overridefinal |
virtual void | putOrMergeProduct_ (std::unique_ptr< WrapperBase > prod) const overridefinal |
virtual void | resetBranchDescription_ (std::shared_ptr< BranchDescription const > bd) overridefinal |
virtual std::string const & | resolvedModuleLabel_ () const overridefinal |
virtual void | setProcessHistory_ (ProcessHistory const &ph) overridefinal |
virtual void | setProvenance_ (ProductProvenanceRetriever const *provRetriever, ProcessHistory const &ph, ProductID const &pid) overridefinal |
virtual bool | singleProduct_ () const overridefinal |
void | throwProductDeletedException () const |
Private Attributes | |
ProductStatus const | defaultStatus_ |
ProductData | productData_ |
std::atomic< ProductStatus > | theStatus_ |
Definition at line 35 of file ProductResolvers.h.
|
strong |
Enumerator | |
---|---|
ProductSet | |
NotPut | |
ResolveFailed | |
ResolveNotRun | |
ProductDeleted |
Definition at line 37 of file ProductResolvers.h.
|
inline |
Definition at line 45 of file ProductResolvers.h.
|
inlinefinaloverrideprivatevirtual |
Implements edm::ProductResolverBase.
Definition at line 81 of file ProductResolvers.h.
References edm::ProductData::branchDescription(), and getProductData().
|
private |
Definition at line 477 of file ProductResolvers.cc.
References edm::ProductResolverBase::branchDescription(), edm::BranchDescription::branchName(), edm::BranchDescription::className(), edm::WrapperBase::dynamicTypeInfo(), edm::errors::EventCorruption, Exception, and edm::BranchDescription::unwrappedTypeID().
Referenced by mergeProduct(), and setProduct().
|
finaloverridevirtual |
Implements edm::ProductResolverBase.
Definition at line 459 of file ProductResolvers.cc.
References assert().
|
inlineprotected |
Definition at line 60 of file ProductResolvers.h.
References defaultStatus_.
Referenced by productResolved_(), putOrMergeProduct_(), edm::ProducedProductResolver::putProduct_(), and edm::InputProductResolver::retrieveAndMerge_().
|
inlineprivate |
Definition at line 70 of file ProductResolvers.h.
References productData_.
Referenced by branchDescription_(), mergeProduct(), productUnavailable_(), productWasFetchedAndIsValid_(), and resolveProductImpl().
|
privatepure virtual |
Implemented in edm::ProducedProductResolver, and edm::InputProductResolver.
Referenced by productWasFetchedAndIsValid_().
|
private |
Definition at line 77 of file ProductResolvers.cc.
References assert(), edm::ProductResolverBase::branchDescription(), checkType(), getProductData(), definitions::original, ProductSet, status(), and edm::ProductData::unsafe_wrapper().
Referenced by putOrMergeProduct_().
|
finaloverrideprivatevirtual |
Implements edm::ProductResolverBase.
Definition at line 547 of file ProductResolvers.cc.
References edm::Provenance::productProvenance(), and edm::ProductResolverBase::provenance().
|
finaloverrideprivatevirtual |
Implements edm::ProductResolverBase.
Definition at line 513 of file ProductResolvers.cc.
References defaultStatus(), or, ProductDeleted, alignCSCRings::s, and status().
|
finaloverrideprivatevirtual |
Implements edm::ProductResolverBase.
Definition at line 504 of file ProductResolvers.cc.
References getProductData(), edm::WrapperBase::isPresent(), ProductSet, ResolveNotRun, status(), and edm::ProductData::wrapper().
|
finaloverrideprivatevirtual |
Implements edm::ProductResolverBase.
Definition at line 521 of file ProductResolvers.cc.
References ProductDeleted, and status().
|
finaloverrideprivatevirtual |
Implements edm::ProductResolverBase.
Definition at line 526 of file ProductResolvers.cc.
References getProductData(), isFromCurrentProcess(), ProductSet, status(), and wrapper.
|
inlinefinaloverrideprivatevirtual |
Implements edm::ProductResolverBase.
Definition at line 83 of file ProductResolvers.h.
References productData_, and edm::ProductData::provenance().
|
finaloverrideprivatevirtual |
Implements edm::ProductResolverBase.
Definition at line 464 of file ProductResolvers.cc.
References defaultStatus(), mergeProduct(), eostools::move(), edm::ProductResolverBase::putProduct(), and status().
|
inlinefinaloverrideprivatevirtual |
Implements edm::ProductResolverBase.
Definition at line 82 of file ProductResolvers.h.
References productData_, and edm::ProductData::resetBranchDescription().
|
overridevirtual |
Implements edm::ProductResolverBase.
Reimplemented in edm::UnscheduledProductResolver, edm::PuttableProductResolver, and edm::InputProductResolver.
Definition at line 551 of file ProductResolvers.cc.
References productData_, ProductDeleted, ProductSet, edm::ProductData::resetProductData(), resetStatus(), and theStatus_.
Referenced by edm::ProducedProductResolver::resetFailedFromThisProcess(), edm::InputProductResolver::resetProductData_(), edm::PuttableProductResolver::resetProductData_(), edm::UnscheduledProductResolver::resetProductData_(), and edm::AliasProductResolver::resetProductData_().
|
inline |
Definition at line 52 of file ProductResolvers.h.
References defaultStatus_, and theStatus_.
Referenced by resetProductData_().
|
inlinefinaloverrideprivatevirtual |
Implements edm::ProductResolverBase.
Definition at line 85 of file ProductResolvers.h.
References edm::ProductResolverBase::moduleLabel().
ProductResolverBase::Resolution edm::DataManagingProductResolver::resolveProductImpl | ( | FUNC | resolver | ) | const |
Definition at line 43 of file ProductResolvers.cc.
References getProductData(), ProductSet, edm::ProductResolverBase::productWasDeleted(), Resolution, ResolveNotRun, setFailedStatus(), status(), and throwProductDeletedException().
|
protected |
|
inlineprotected |
Definition at line 61 of file ProductResolvers.h.
References ResolveFailed, and theStatus_.
Referenced by resolveProductImpl(), edm::InputProductResolver::retrieveAndMerge_(), and setProduct().
|
finaloverrideprivatevirtual |
Implements edm::ProductResolverBase.
Definition at line 543 of file ProductResolvers.cc.
References productData_, and edm::ProductData::setProcessHistory().
|
protected |
Definition at line 491 of file ProductResolvers.cc.
References checkType(), eostools::move(), productData_, ProductSet, setFailedStatus(), theStatus_, and edm::ProductData::unsafe_setWrapper().
Referenced by edm::InputProductResolver::putProduct_(), and edm::ProducedProductResolver::putProduct_().
|
finaloverrideprivatevirtual |
Implements edm::ProductResolverBase.
Definition at line 539 of file ProductResolvers.cc.
References productData_, and edm::ProductData::setProvenance().
|
finaloverrideprivatevirtual |
Implements edm::ProductResolverBase.
Definition at line 562 of file ProductResolvers.cc.
|
inlineprotected |
Definition at line 59 of file ProductResolvers.h.
References theStatus_.
Referenced by mergeProduct(), productResolved_(), productUnavailable_(), productWasDeleted_(), productWasFetchedAndIsValid_(), putOrMergeProduct_(), edm::ProducedProductResolver::putProduct_(), edm::ProducedProductResolver::resetFailedFromThisProcess(), resolveProductImpl(), edm::InputProductResolver::retrieveAndMerge_(), and edm::UnscheduledProductResolver::unscheduledWasNotRun_().
|
private |
Definition at line 27 of file ProductResolvers.cc.
References edm::ProductResolverBase::branchDescription(), cppFunctionSkipper::exception, edm::ProductResolverBase::moduleLabel(), edm::ProductResolverBase::processName(), edm::ProductResolverBase::productInstanceName(), and edm::BranchDescription::unwrappedTypeID().
Referenced by resolveProductImpl().
|
private |
Definition at line 93 of file ProductResolvers.h.
Referenced by defaultStatus(), and resetStatus().
|
private |
Definition at line 91 of file ProductResolvers.h.
Referenced by getProductData(), provenance_(), resetBranchDescription_(), resetProductData_(), setProcessHistory_(), setProduct(), and setProvenance_().
|
mutableprivate |
Definition at line 92 of file ProductResolvers.h.
Referenced by resetProductData_(), resetStatus(), setFailedStatus(), setProduct(), and status().