#include <ProductResolvers.h>
Public Types | |
typedef ProducedProductResolver::ProductStatus | ProductStatus |
Public Member Functions | |
virtual void | connectTo (ProductResolverBase const &iOther, Principal const *) override final |
bool | dataValidFromResolver (unsigned int iProcessingIndex, Principal const &principal, bool iSkipCurrentProcess) const |
NoProcessProductResolver (std::vector< ProductResolverIndex > const &matchingHolders, std::vector< bool > const &ambiguous) | |
void | prefetchFailed (unsigned int iProcessingIndex, Principal const &principal, bool iSkipCurrentProcess, std::exception_ptr iExceptPtr) const |
void | tryPrefetchResolverAsync (unsigned int iProcessingIndex, Principal const &principal, bool skipCurrentProcess, SharedResourcesAcquirer *sra, ModuleCallingContext const *mcc, ServiceToken token) 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 () |
Private Member Functions | |
virtual BranchDescription const & | branchDescription_ () const override |
virtual void | prefetchAsync_ (WaitingTask *waitTask, Principal const &principal, bool skipCurrentProcess, SharedResourcesAcquirer *sra, ModuleCallingContext const *mcc) const override |
virtual ProductProvenance const * | productProvenancePtr_ () const override |
virtual bool | productResolved_ () const override final |
virtual bool | productUnavailable_ () const override |
virtual bool | productWasDeleted_ () const override |
virtual bool | productWasFetchedAndIsValid_ (bool iSkipCurrentProcess) const override |
virtual Provenance const * | provenance_ () const override |
virtual void | putOrMergeProduct_ (std::unique_ptr< WrapperBase > prod) const override final |
virtual void | putProduct_ (std::unique_ptr< WrapperBase > edp) const override |
virtual void | resetBranchDescription_ (std::shared_ptr< BranchDescription const > bd) override |
virtual void | resetProductData_ (bool deleteEarly) override |
virtual std::string const & | resolvedModuleLabel_ () const override |
virtual Resolution | resolveProduct_ (Principal const &principal, bool skipCurrentProcess, SharedResourcesAcquirer *sra, ModuleCallingContext const *mcc) const override |
void | setCache (bool skipCurrentProcess, ProductResolverIndex index, std::exception_ptr exceptionPtr) const |
virtual void | setProcessHistory_ (ProcessHistory const &ph) override |
virtual void | setProvenance_ (ProductProvenanceRetriever const *provRetriever, ProcessHistory const &ph, ProductID const &pid) override |
virtual bool | singleProduct_ () const override |
Resolution | tryResolver (unsigned int index, Principal const &principal, bool skipCurrentProcess, SharedResourcesAcquirer *sra, ModuleCallingContext const *mcc) const |
virtual bool | unscheduledWasNotRun_ () const override |
unsigned int | unsetIndexValue () const |
Private Attributes | |
std::vector< bool > | ambiguous_ |
std::atomic< unsigned int > | lastCheckIndex_ |
std::atomic< unsigned int > | lastSkipCurrentCheckIndex_ |
std::vector< ProductResolverIndex > | matchingHolders_ |
std::atomic< bool > | prefetchRequested_ |
std::atomic< bool > | recheckedAtEnd_ |
std::atomic< bool > | skippingPrefetchRequested_ |
WaitingTaskList | skippingWaitingTasks_ |
WaitingTaskList | waitingTasks_ |
Definition at line 309 of file ProductResolvers.h.
Definition at line 311 of file ProductResolvers.h.
edm::NoProcessProductResolver::NoProcessProductResolver | ( | std::vector< ProductResolverIndex > const & | matchingHolders, |
std::vector< bool > const & | ambiguous | ||
) |
Definition at line 638 of file ProductResolvers.cc.
References ambiguous_, and matchingHolders_.
Referenced by edm::ParentProcessProductResolver::throwNullRealProduct().
|
overrideprivatevirtual |
Implements edm::ProductResolverBase.
Definition at line 960 of file ProductResolvers.cc.
References Exception, and edm::errors::LogicError.
|
finaloverridevirtual |
Implements edm::ProductResolverBase.
Definition at line 978 of file ProductResolvers.cc.
References Exception, and edm::errors::LogicError.
bool edm::NoProcessProductResolver::dataValidFromResolver | ( | unsigned int | iProcessingIndex, |
Principal const & | principal, | ||
bool | iSkipCurrentProcess | ||
) | const |
Definition at line 820 of file ProductResolvers.cc.
References edm::Principal::getProductResolverByIndex(), gen::k, edm::Principal::lookupProcessOrder(), matchingHolders_, edm::ProductResolverBase::productWasFetchedAndIsValid(), and setCache().
|
overrideprivatevirtual |
Implements edm::ProductResolverBase.
Definition at line 714 of file ProductResolvers.cc.
References edm::WaitingTaskList::add(), edm::Principal::atEndTransition(), edm::ServiceRegistry::instance(), or, prefetchRequested_, recheckedAtEnd_, skippingPrefetchRequested_, skippingWaitingTasks_, tryPrefetchResolverAsync(), and waitingTasks_.
void edm::NoProcessProductResolver::prefetchFailed | ( | unsigned int | iProcessingIndex, |
Principal const & | principal, | ||
bool | iSkipCurrentProcess, | ||
std::exception_ptr | iExceptPtr | ||
) | const |
Definition at line 808 of file ProductResolvers.cc.
References gen::k, edm::Principal::lookupProcessOrder(), and setCache().
|
overrideprivatevirtual |
Implements edm::ProductResolverBase.
Definition at line 897 of file ProductResolvers.cc.
|
finaloverrideprivatevirtual |
Implements edm::ProductResolverBase.
Definition at line 930 of file ProductResolvers.cc.
References Exception, and edm::errors::LogicError.
|
overrideprivatevirtual |
Implements edm::ProductResolverBase.
Definition at line 924 of file ProductResolvers.cc.
References Exception, and edm::errors::LogicError.
|
overrideprivatevirtual |
Implements edm::ProductResolverBase.
Definition at line 936 of file ProductResolvers.cc.
References Exception, and edm::errors::LogicError.
|
overrideprivatevirtual |
Implements edm::ProductResolverBase.
Definition at line 942 of file ProductResolvers.cc.
References Exception, and edm::errors::LogicError.
|
overrideprivatevirtual |
Implements edm::ProductResolverBase.
Definition at line 972 of file ProductResolvers.cc.
References Exception, and edm::errors::LogicError.
|
finaloverrideprivatevirtual |
Implements edm::ProductResolverBase.
Definition at line 954 of file ProductResolvers.cc.
References Exception, and edm::errors::LogicError.
|
overrideprivatevirtual |
Implements edm::ProductResolverBase.
Definition at line 948 of file ProductResolvers.cc.
References Exception, and edm::errors::LogicError.
|
overrideprivatevirtual |
Implements edm::ProductResolverBase.
Definition at line 966 of file ProductResolvers.cc.
References Exception, and edm::errors::LogicError.
|
overrideprivatevirtual |
Implements edm::ProductResolverBase.
Definition at line 903 of file ProductResolvers.cc.
References lastCheckIndex_, lastSkipCurrentCheckIndex_, prefetchRequested_, recheckedAtEnd_, edm::WaitingTaskList::reset(), skippingPrefetchRequested_, skippingWaitingTasks_, unsetIndexValue(), and waitingTasks_.
|
inlineoverrideprivatevirtual |
Implements edm::ProductResolverBase.
Definition at line 355 of file ProductResolvers.h.
References diffTreeTool::index, edm::ProductResolverBase::moduleLabel(), sysUtil::pid, cmsRelvalreport::principal(), edm::DataManagingProductResolver::productProvenancePtr_(), edm::DataManagingProductResolver::resetProductData_(), edm::DataManagingProductResolver::setProcessHistory_(), edm::DataManagingProductResolver::setProvenance_(), and edm::DataManagingProductResolver::singleProduct_().
|
overrideprivatevirtual |
Implements edm::ProductResolverBase.
Definition at line 662 of file ProductResolvers.cc.
References ambiguous_, edm::Principal::atEndTransition(), gen::k, kAmbiguousOffset, kMissingOffset, kUnsetOffset, lastCheckIndex_, lastSkipCurrentCheckIndex_, edm::Principal::lookupProcessOrder(), edm::ProductResolverBase::Resolution::makeAmbiguous(), matchingHolders_, or, edm::ProductResolverIndexInvalid, recheckedAtEnd_, ctppsDiamondLocalTracks_cfi::resolution, Resolution, and tryResolver().
|
private |
Definition at line 748 of file ProductResolvers.cc.
References edm::WaitingTaskList::doneWaiting(), cmsIgProf_Analysis::execute(), lastCheckIndex_, lastSkipCurrentCheckIndex_, skippingWaitingTasks_, and waitingTasks_.
Referenced by dataValidFromResolver(), prefetchFailed(), and tryPrefetchResolverAsync().
|
overrideprivatevirtual |
Implements edm::ProductResolverBase.
Definition at line 894 of file ProductResolvers.cc.
|
overrideprivatevirtual |
Implements edm::ProductResolverBase.
Definition at line 891 of file ProductResolvers.cc.
|
overrideprivatevirtual |
Implements edm::ProductResolverBase.
Definition at line 914 of file ProductResolvers.cc.
void edm::NoProcessProductResolver::tryPrefetchResolverAsync | ( | unsigned int | iProcessingIndex, |
Principal const & | principal, | ||
bool | skipCurrentProcess, | ||
SharedResourcesAcquirer * | sra, | ||
ModuleCallingContext const * | mcc, | ||
ServiceToken | token | ||
) | const |
Definition at line 837 of file ProductResolvers.cc.
References ambiguous_, edm::Principal::getProductResolverByIndex(), diffTreeTool::index, gen::k, kAmbiguousOffset, kMissingOffset, edm::Principal::lookupProcessOrder(), matchingHolders_, edm::ProductResolverBase::prefetchAsync(), edm::ProductResolverIndexInvalid, and setCache().
Referenced by prefetchAsync_().
|
private |
Definition at line 651 of file ProductResolvers.cc.
References edm::Principal::getProductResolverByIndex(), matchingHolders_, and edm::ProductResolverBase::resolveProduct().
Referenced by resolveProduct_().
|
overrideprivatevirtual |
Implements edm::ProductResolverBase.
Definition at line 918 of file ProductResolvers.cc.
References Exception, and edm::errors::LogicError.
|
inlineprivate |
Definition at line 901 of file ProductResolvers.cc.
References ambiguous_, and kUnsetOffset.
Referenced by resetProductData_().
|
private |
Definition at line 371 of file ProductResolvers.h.
Referenced by NoProcessProductResolver(), resolveProduct_(), tryPrefetchResolverAsync(), and unsetIndexValue().
|
mutableprivate |
Definition at line 374 of file ProductResolvers.h.
Referenced by resetProductData_(), resolveProduct_(), and setCache().
|
mutableprivate |
Definition at line 375 of file ProductResolvers.h.
Referenced by resetProductData_(), resolveProduct_(), and setCache().
|
private |
Definition at line 370 of file ProductResolvers.h.
Referenced by dataValidFromResolver(), NoProcessProductResolver(), resolveProduct_(), tryPrefetchResolverAsync(), and tryResolver().
|
mutableprivate |
Definition at line 376 of file ProductResolvers.h.
Referenced by prefetchAsync_(), and resetProductData_().
|
mutableprivate |
Definition at line 378 of file ProductResolvers.h.
Referenced by prefetchAsync_(), resetProductData_(), and resolveProduct_().
|
mutableprivate |
Definition at line 377 of file ProductResolvers.h.
Referenced by prefetchAsync_(), and resetProductData_().
|
mutableprivate |
Definition at line 373 of file ProductResolvers.h.
Referenced by prefetchAsync_(), resetProductData_(), and setCache().
|
mutableprivate |
Definition at line 372 of file ProductResolvers.h.
Referenced by prefetchAsync_(), resetProductData_(), and setCache().