CMS 3D CMS Logo

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) override final
 
- 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 override final
 
virtual bool productUnavailable_ () const override
 
virtual bool productWasDeleted_ () const override
 
virtual bool productWasFetchedAndIsValid_ (bool iSkipCurrentProcess) const override final
 
virtual Provenance const * provenance_ () const override final
 
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
 
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 *) override final
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
def principal(options)
ProductProvenance const * edm::AliasProductResolver::productProvenancePtr_ ( ) const
overrideprivatevirtual

Implements edm::ProductResolverBase.

Definition at line 556 of file ProductResolvers.cc.

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

556  {
557  return provenance()->productProvenance();
558  }
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.

References parseEventContent::prod, edm::DataManagingProductResolver::putOrMergeProduct_(), and edm::ProductResolverBase::putProduct_().

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 574 of file ProductResolvers.cc.

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

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

Implements edm::ProductResolverBase.

Definition at line 568 of file ProductResolvers.cc.

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

568  {
570  << "AliasProductResolver::putProduct_() not implemented and should never be called.\n"
571  << "Contact a Framework developer\n";
572  }
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 560 of file ProductResolvers.cc.

560  {
561  realProduct_.resetProductData_(deleteEarly);
562  }
ProducedProductResolver & realProduct_
virtual void resetProductData_(bool deleteEarly) override
virtual std::string const& edm::AliasProductResolver::resolvedModuleLabel_ ( ) const
inlineoverrideprivatevirtual
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
def principal(options)
void edm::AliasProductResolver::setProcessHistory_ ( ProcessHistory const &  ph)
overrideprivatevirtual

Implements edm::ProductResolverBase.

Definition at line 552 of file ProductResolvers.cc.

552  {
554  }
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 548 of file ProductResolvers.cc.

548  {
549  realProduct_.setProvenance(provRetriever,ph,pid);
550  }
ProducedProductResolver & realProduct_
void setProvenance(ProductProvenanceRetriever const *provRetriever, ProcessHistory const &ph, ProductID const &pid)
bool edm::AliasProductResolver::singleProduct_ ( ) const
overrideprivatevirtual

Implements edm::ProductResolverBase.

Definition at line 564 of file ProductResolvers.cc.

564  {
565  return true;
566  }
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.