CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Types | Public Member Functions | Private Member Functions | Private Attributes
edm::AliasProductResolver Class Reference

#include <ProductResolvers.h>

Inheritance diagram for edm::AliasProductResolver:
edm::ProductResolverBase

Public Types

typedef
ProducedProductResolver::ProductStatus 
ProductStatus
 

Public Member Functions

 AliasProductResolver (std::shared_ptr< BranchDescription const > bd, ProducedProductResolver &realProduct)
 
virtual void connectTo (ProductResolverBase const &iOther, Principal const *iParentPrincipal) overridefinal
 
- Public Member Functions inherited from edm::ProductResolverBase
BranchDescription const & branchDescription () const
 
std::string const & moduleLabel () const
 
ProductResolverBaseoperator= (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 overridefinal
 
virtual bool productUnavailable_ () const override
 
virtual bool productWasDeleted_ () const override
 
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 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
 
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
 
virtual bool unscheduledWasNotRun_ () const override
 

Private Attributes

std::shared_ptr
< BranchDescription const > 
bd_
 
ProducedProductResolverrealProduct_
 

Detailed Description

Definition at line 202 of file ProductResolvers.h.

Member Typedef Documentation

Definition at line 204 of file ProductResolvers.h.

Constructor & Destructor Documentation

edm::AliasProductResolver::AliasProductResolver ( std::shared_ptr< BranchDescription const >  bd,
ProducedProductResolver realProduct 
)
inlineexplicit

Definition at line 205 of file ProductResolvers.h.

205 : ProductResolverBase(), realProduct_(realProduct), bd_(bd) {}
ProducedProductResolver & realProduct_
std::shared_ptr< BranchDescription const > bd_

Member Function Documentation

virtual BranchDescription const& edm::AliasProductResolver::branchDescription_ ( ) const
inlineoverrideprivatevirtual

Implements edm::ProductResolverBase.

Definition at line 235 of file ProductResolvers.h.

235 {return *bd_;}
std::shared_ptr< BranchDescription const > bd_
virtual void edm::AliasProductResolver::connectTo ( ProductResolverBase const &  iOther,
Principal const *  iParentPrincipal 
)
inlinefinaloverridevirtual

Implements edm::ProductResolverBase.

Definition at line 207 of file ProductResolvers.h.

207  {
208  realProduct_.connectTo(iOther, iParentPrincipal );
209  };
ProducedProductResolver & realProduct_
virtual void connectTo(ProductResolverBase const &, Principal const *) overridefinal
virtual void edm::AliasProductResolver::prefetchAsync_ ( WaitingTask waitTask,
Principal const &  principal,
bool  skipCurrentProcess,
SharedResourcesAcquirer sra,
ModuleCallingContext const *  mcc 
) const
inlineoverrideprivatevirtual

Implements edm::ProductResolverBase.

Definition at line 217 of file ProductResolvers.h.

221  {
222  realProduct_.prefetchAsync(waitTask, principal, skipCurrentProcess, sra, mcc);
223  }
ProducedProductResolver & realProduct_
void prefetchAsync(WaitingTask *waitTask, Principal const &principal, bool skipCurrentProcess, SharedResourcesAcquirer *sra, ModuleCallingContext const *mcc) const
ProductProvenance const * edm::AliasProductResolver::productProvenancePtr_ ( ) const
overrideprivatevirtual

Implements edm::ProductResolverBase.

Definition at line 574 of file ProductResolvers.cc.

References edm::Provenance::productProvenance(), and edm::ProductResolverBase::provenance().

574  {
575  return provenance()->productProvenance();
576  }
Provenance const * provenance() const
ProductProvenance const * productProvenance() const
Definition: Provenance.cc:31
virtual bool edm::AliasProductResolver::productResolved_ ( ) const
inlinefinaloverrideprivatevirtual

Implements edm::ProductResolverBase.

Definition at line 226 of file ProductResolvers.h.

226  {
227  return realProduct_.productResolved(); }
ProducedProductResolver & realProduct_
virtual bool edm::AliasProductResolver::productUnavailable_ ( ) const
inlineoverrideprivatevirtual

Implements edm::ProductResolverBase.

Definition at line 225 of file ProductResolvers.h.

ProducedProductResolver & realProduct_
virtual bool edm::AliasProductResolver::productWasDeleted_ ( ) const
inlineoverrideprivatevirtual

Implements edm::ProductResolverBase.

Definition at line 228 of file ProductResolvers.h.

ProducedProductResolver & realProduct_
virtual bool edm::AliasProductResolver::productWasFetchedAndIsValid_ ( bool  iSkipCurrentProcess) const
inlinefinaloverrideprivatevirtual

Implements edm::ProductResolverBase.

Definition at line 229 of file ProductResolvers.h.

229  {
230  return realProduct_.productWasFetchedAndIsValid(iSkipCurrentProcess);
231  }
ProducedProductResolver & realProduct_
bool productWasFetchedAndIsValid(bool iSkipCurrentProcess) const
virtual Provenance const* edm::AliasProductResolver::provenance_ ( ) const
inlinefinaloverrideprivatevirtual

Implements edm::ProductResolverBase.

Definition at line 237 of file ProductResolvers.h.

237 { return realProduct_.provenance(); }
ProducedProductResolver & realProduct_
Provenance const * provenance() const
void edm::AliasProductResolver::putOrMergeProduct_ ( std::unique_ptr< WrapperBase prod) const
finaloverrideprivatevirtual

Implements edm::ProductResolverBase.

Definition at line 592 of file ProductResolvers.cc.

References Exception, and edm::errors::LogicError.

592  {
594  << "AliasProductResolver::putOrMergeProduct_(std::unique_ptr<WrapperBase> edp) not implemented and should never be called.\n"
595  << "Contact a Framework developer\n";
596  }
void edm::AliasProductResolver::putProduct_ ( std::unique_ptr< WrapperBase edp) const
overrideprivatevirtual

Implements edm::ProductResolverBase.

Definition at line 586 of file ProductResolvers.cc.

References Exception, and edm::errors::LogicError.

586  {
588  << "AliasProductResolver::putProduct_() not implemented and should never be called.\n"
589  << "Contact a Framework developer\n";
590  }
virtual void edm::AliasProductResolver::resetBranchDescription_ ( std::shared_ptr< BranchDescription const >  bd)
inlineoverrideprivatevirtual

Implements edm::ProductResolverBase.

Definition at line 236 of file ProductResolvers.h.

236 {bd_ = bd;}
std::shared_ptr< BranchDescription const > bd_
void edm::AliasProductResolver::resetProductData_ ( bool  deleteEarly)
overrideprivatevirtual

Implements edm::ProductResolverBase.

Definition at line 578 of file ProductResolvers.cc.

References realProduct_, and edm::DataManagingProductResolver::resetProductData_().

578  {
579  realProduct_.resetProductData_(deleteEarly);
580  }
ProducedProductResolver & realProduct_
virtual void resetProductData_(bool deleteEarly) override
virtual std::string const& edm::AliasProductResolver::resolvedModuleLabel_ ( ) const
inlineoverrideprivatevirtual

Implements edm::ProductResolverBase.

Definition at line 239 of file ProductResolvers.h.

239 {return realProduct_.moduleLabel();}
ProducedProductResolver & realProduct_
std::string const & moduleLabel() const
virtual Resolution edm::AliasProductResolver::resolveProduct_ ( Principal const &  principal,
bool  skipCurrentProcess,
SharedResourcesAcquirer sra,
ModuleCallingContext const *  mcc 
) const
inlineoverrideprivatevirtual

Implements edm::ProductResolverBase.

Definition at line 212 of file ProductResolvers.h.

215  {
216  return realProduct_.resolveProduct(principal, skipCurrentProcess, sra, mcc);}
ProducedProductResolver & realProduct_
Resolution resolveProduct(Principal const &principal, bool skipCurrentProcess, SharedResourcesAcquirer *sra, ModuleCallingContext const *mcc) const
void edm::AliasProductResolver::setProcessHistory_ ( ProcessHistory const &  ph)
overrideprivatevirtual

Implements edm::ProductResolverBase.

Definition at line 570 of file ProductResolvers.cc.

References realProduct_, and edm::ProductResolverBase::setProcessHistory().

570  {
572  }
ProducedProductResolver & realProduct_
void setProcessHistory(ProcessHistory const &ph)
void edm::AliasProductResolver::setProvenance_ ( ProductProvenanceRetriever const *  provRetriever,
ProcessHistory const &  ph,
ProductID const &  pid 
)
overrideprivatevirtual

Implements edm::ProductResolverBase.

Definition at line 566 of file ProductResolvers.cc.

References realProduct_, and edm::ProductResolverBase::setProvenance().

566  {
567  realProduct_.setProvenance(provRetriever,ph,pid);
568  }
ProducedProductResolver & realProduct_
tuple pid
Definition: sysUtil.py:22
void setProvenance(ProductProvenanceRetriever const *provRetriever, ProcessHistory const &ph, ProductID const &pid)
bool edm::AliasProductResolver::singleProduct_ ( ) const
overrideprivatevirtual

Implements edm::ProductResolverBase.

Definition at line 582 of file ProductResolvers.cc.

582  {
583  return true;
584  }
virtual bool edm::AliasProductResolver::unscheduledWasNotRun_ ( ) const
inlineoverrideprivatevirtual

Implements edm::ProductResolverBase.

Definition at line 224 of file ProductResolvers.h.

ProducedProductResolver & realProduct_

Member Data Documentation

std::shared_ptr<BranchDescription const> edm::AliasProductResolver::bd_
private

Definition at line 247 of file ProductResolvers.h.

ProducedProductResolver& edm::AliasProductResolver::realProduct_
private

Definition at line 246 of file ProductResolvers.h.

Referenced by resetProductData_(), setProcessHistory_(), and setProvenance_().