#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 > | skippingPrefetchRequested_ |
WaitingTaskList | skippingWaitingTasks_ |
WaitingTaskList | waitingTasks_ |
Definition at line 303 of file ProductResolvers.h.
Definition at line 305 of file ProductResolvers.h.
edm::NoProcessProductResolver::NoProcessProductResolver | ( | std::vector< ProductResolverIndex > const & | matchingHolders, |
std::vector< bool > const & | ambiguous | ||
) |
Definition at line 634 of file ProductResolvers.cc.
References ambiguous_, and matchingHolders_.
Referenced by edm::ParentProcessProductResolver::throwNullRealProduct().
|
overrideprivatevirtual |
Implements edm::ProductResolverBase.
Definition at line 935 of file ProductResolvers.cc.
References Exception, and edm::errors::LogicError.
|
finaloverridevirtual |
Implements edm::ProductResolverBase.
Definition at line 953 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 796 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 701 of file ProductResolvers.cc.
References edm::WaitingTaskList::add(), edm::ServiceRegistry::instance(), prefetchRequested_, 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 784 of file ProductResolvers.cc.
References gen::k, edm::Principal::lookupProcessOrder(), and setCache().
|
overrideprivatevirtual |
Implements edm::ProductResolverBase.
Definition at line 873 of file ProductResolvers.cc.
|
finaloverrideprivatevirtual |
Implements edm::ProductResolverBase.
Definition at line 905 of file ProductResolvers.cc.
References Exception, and edm::errors::LogicError.
|
overrideprivatevirtual |
Implements edm::ProductResolverBase.
Definition at line 899 of file ProductResolvers.cc.
References Exception, and edm::errors::LogicError.
|
overrideprivatevirtual |
Implements edm::ProductResolverBase.
Definition at line 911 of file ProductResolvers.cc.
References Exception, and edm::errors::LogicError.
|
overrideprivatevirtual |
Implements edm::ProductResolverBase.
Definition at line 917 of file ProductResolvers.cc.
References Exception, and edm::errors::LogicError.
|
overrideprivatevirtual |
Implements edm::ProductResolverBase.
Definition at line 947 of file ProductResolvers.cc.
References Exception, and edm::errors::LogicError.
|
finaloverrideprivatevirtual |
Implements edm::ProductResolverBase.
Definition at line 929 of file ProductResolvers.cc.
References Exception, and edm::errors::LogicError.
|
overrideprivatevirtual |
Implements edm::ProductResolverBase.
Definition at line 923 of file ProductResolvers.cc.
References Exception, and edm::errors::LogicError.
|
overrideprivatevirtual |
Implements edm::ProductResolverBase.
Definition at line 941 of file ProductResolvers.cc.
References Exception, and edm::errors::LogicError.
|
overrideprivatevirtual |
Implements edm::ProductResolverBase.
Definition at line 879 of file ProductResolvers.cc.
References lastCheckIndex_, lastSkipCurrentCheckIndex_, prefetchRequested_, edm::WaitingTaskList::reset(), skippingPrefetchRequested_, skippingWaitingTasks_, unsetIndexValue(), and waitingTasks_.
|
inlineoverrideprivatevirtual |
Implements edm::ProductResolverBase.
Definition at line 349 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 657 of file ProductResolvers.cc.
References ambiguous_, gen::k, kAmbiguousOffset, kMissingOffset, kUnsetOffset, lastCheckIndex_, lastSkipCurrentCheckIndex_, edm::Principal::lookupProcessOrder(), edm::ProductResolverBase::Resolution::makeAmbiguous(), matchingHolders_, edm::ProductResolverIndexInvalid, ctppsDiamondLocalTracks_cfi::resolution, Resolution, and tryResolver().
|
private |
Definition at line 724 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 870 of file ProductResolvers.cc.
|
overrideprivatevirtual |
Implements edm::ProductResolverBase.
Definition at line 867 of file ProductResolvers.cc.
|
overrideprivatevirtual |
Implements edm::ProductResolverBase.
Definition at line 889 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 813 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 646 of file ProductResolvers.cc.
References edm::Principal::getProductResolverByIndex(), matchingHolders_, and edm::ProductResolverBase::resolveProduct().
Referenced by resolveProduct_().
|
overrideprivatevirtual |
Implements edm::ProductResolverBase.
Definition at line 893 of file ProductResolvers.cc.
References Exception, and edm::errors::LogicError.
|
inlineprivate |
Definition at line 877 of file ProductResolvers.cc.
References ambiguous_, and kUnsetOffset.
Referenced by resetProductData_().
|
private |
Definition at line 365 of file ProductResolvers.h.
Referenced by NoProcessProductResolver(), resolveProduct_(), tryPrefetchResolverAsync(), and unsetIndexValue().
|
mutableprivate |
Definition at line 368 of file ProductResolvers.h.
Referenced by resetProductData_(), resolveProduct_(), and setCache().
|
mutableprivate |
Definition at line 369 of file ProductResolvers.h.
Referenced by resetProductData_(), resolveProduct_(), and setCache().
|
private |
Definition at line 364 of file ProductResolvers.h.
Referenced by dataValidFromResolver(), NoProcessProductResolver(), resolveProduct_(), tryPrefetchResolverAsync(), and tryResolver().
|
mutableprivate |
Definition at line 370 of file ProductResolvers.h.
Referenced by prefetchAsync_(), and resetProductData_().
|
mutableprivate |
Definition at line 371 of file ProductResolvers.h.
Referenced by prefetchAsync_(), and resetProductData_().
|
mutableprivate |
Definition at line 367 of file ProductResolvers.h.
Referenced by prefetchAsync_(), resetProductData_(), and setCache().
|
mutableprivate |
Definition at line 366 of file ProductResolvers.h.
Referenced by prefetchAsync_(), resetProductData_(), and setCache().