CMS 3D CMS Logo

List of all members | Public Types | Public Member Functions | Private Member Functions | Private Attributes
edm::SingleChoiceNoProcessProductResolver Class Reference

#include <ProductResolvers.h>

Inheritance diagram for edm::SingleChoiceNoProcessProductResolver:
edm::ProductResolverBase

Public Types

typedef ProducedProductResolver::ProductStatus ProductStatus
 

Public Member Functions

void connectTo (ProductResolverBase const &iOther, Principal const *) final
 
 SingleChoiceNoProcessProductResolver (ProductResolverIndex iChoice)
 
- 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, ServiceToken const &token, 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)
 
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

BranchDescription const & branchDescription_ () const override
 
void prefetchAsync_ (WaitingTask *waitTask, Principal const &principal, bool skipCurrentProcess, ServiceToken const &token, SharedResourcesAcquirer *sra, ModuleCallingContext const *mcc) const override
 
ProductProvenance const * productProvenancePtr_ () const override
 
bool productResolved_ () const final
 
bool productUnavailable_ () const override
 
bool productWasDeleted_ () const override
 
bool productWasFetchedAndIsValid_ (bool iSkipCurrentProcess) const override
 
Provenance const * provenance_ () const override
 
void putOrMergeProduct_ (std::unique_ptr< WrapperBase > prod) const final
 
void putProduct_ (std::unique_ptr< WrapperBase > edp) const override
 
void resetBranchDescription_ (std::shared_ptr< BranchDescription const > bd) override
 
void resetProductData_ (bool deleteEarly) override
 
std::string const & resolvedModuleLabel_ () const override
 
Resolution resolveProduct_ (Principal const &principal, bool skipCurrentProcess, SharedResourcesAcquirer *sra, ModuleCallingContext const *mcc) const override
 
void setProcessHistory_ (ProcessHistory const &ph) override
 
void setProvenance_ (ProductProvenanceRetriever const *provRetriever, ProcessHistory const &ph, ProductID const &pid) override
 
bool singleProduct_ () const override
 
bool unscheduledWasNotRun_ () const override
 

Private Attributes

ProductResolverIndex realResolverIndex_
 

Detailed Description

Definition at line 385 of file ProductResolvers.h.

Member Typedef Documentation

Definition at line 387 of file ProductResolvers.h.

Constructor & Destructor Documentation

edm::SingleChoiceNoProcessProductResolver::SingleChoiceNoProcessProductResolver ( ProductResolverIndex  iChoice)
inline

Member Function Documentation

BranchDescription const & edm::SingleChoiceNoProcessProductResolver::branchDescription_ ( ) const
overrideprivatevirtual

Implements edm::ProductResolverBase.

Definition at line 1061 of file ProductResolvers.cc.

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

1061  {
1063  << "SingleChoiceNoProcessProductResolver::branchDescription_() not implemented and should never be called.\n"
1064  << "Contact a Framework developer\n";
1065  }
void edm::SingleChoiceNoProcessProductResolver::connectTo ( ProductResolverBase const &  iOther,
Principal const *   
)
finalvirtual

Implements edm::ProductResolverBase.

Definition at line 1079 of file ProductResolvers.cc.

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

1079  {
1081  << "SingleChoiceNoProcessProductResolver::connectTo() not implemented and should never be called.\n"
1082  << "Contact a Framework developer\n";
1083 
1084  }
void edm::SingleChoiceNoProcessProductResolver::prefetchAsync_ ( WaitingTask waitTask,
Principal const &  principal,
bool  skipCurrentProcess,
ServiceToken const &  token,
SharedResourcesAcquirer sra,
ModuleCallingContext const *  mcc 
) const
overrideprivatevirtual

Implements edm::ProductResolverBase.

Definition at line 990 of file ProductResolvers.cc.

References edm::Principal::getProductResolverByIndex().

995  {
996  principal.getProductResolverByIndex(realResolverIndex_)
997  ->prefetchAsync(waitTask,principal,
998  skipCurrentProcess, token, sra, mcc);
999  }
def principal(options)
ProductProvenance const * edm::SingleChoiceNoProcessProductResolver::productProvenancePtr_ ( ) const
overrideprivatevirtual

Implements edm::ProductResolverBase.

Definition at line 1007 of file ProductResolvers.cc.

1007  {
1008  return nullptr;
1009  }
bool edm::SingleChoiceNoProcessProductResolver::productResolved_ ( ) const
finalprivatevirtual

Implements edm::ProductResolverBase.

Definition at line 1030 of file ProductResolvers.cc.

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

1030  {
1032  << "SingleChoiceNoProcessProductResolver::productResolved_() not implemented and should never be called.\n"
1033  << "Contact a Framework developer\n";
1034  }
bool edm::SingleChoiceNoProcessProductResolver::productUnavailable_ ( ) const
overrideprivatevirtual

Implements edm::ProductResolverBase.

Definition at line 1024 of file ProductResolvers.cc.

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

1024  {
1026  << "SingleChoiceNoProcessProductResolver::productUnavailable_() not implemented and should never be called.\n"
1027  << "Contact a Framework developer\n";
1028  }
bool edm::SingleChoiceNoProcessProductResolver::productWasDeleted_ ( ) const
overrideprivatevirtual

Implements edm::ProductResolverBase.

Definition at line 1036 of file ProductResolvers.cc.

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

1036  {
1038  << "SingleChoiceNoProcessProductResolver::productWasDeleted_() not implemented and should never be called.\n"
1039  << "Contact a Framework developer\n";
1040  }
bool edm::SingleChoiceNoProcessProductResolver::productWasFetchedAndIsValid_ ( bool  iSkipCurrentProcess) const
overrideprivatevirtual

Implements edm::ProductResolverBase.

Definition at line 1042 of file ProductResolvers.cc.

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

1042  {
1044  << "SingleChoiceNoProcessProductResolver::productWasFetchedAndIsValid_() not implemented and should never be called.\n"
1045  << "Contact a Framework developer\n";
1046  }
Provenance const * edm::SingleChoiceNoProcessProductResolver::provenance_ ( ) const
overrideprivatevirtual

Implements edm::ProductResolverBase.

Definition at line 1073 of file ProductResolvers.cc.

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

1073  {
1075  << "SingleChoiceNoProcessProductResolver::provenance_() not implemented and should never be called.\n"
1076  << "Contact a Framework developer\n";
1077  }
void edm::SingleChoiceNoProcessProductResolver::putOrMergeProduct_ ( std::unique_ptr< WrapperBase prod) const
finalprivatevirtual

Implements edm::ProductResolverBase.

Definition at line 1055 of file ProductResolvers.cc.

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

1055  {
1057  << "SingleChoiceNoProcessProductResolver::putOrMergeProduct_(std::unique_ptr<WrapperBase> edp) not implemented and should never be called.\n"
1058  << "Contact a Framework developer\n";
1059  }
void edm::SingleChoiceNoProcessProductResolver::putProduct_ ( std::unique_ptr< WrapperBase edp) const
overrideprivatevirtual

Implements edm::ProductResolverBase.

Definition at line 1049 of file ProductResolvers.cc.

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

1049  {
1051  << "SingleChoiceNoProcessProductResolver::putProduct_() not implemented and should never be called.\n"
1052  << "Contact a Framework developer\n";
1053  }
void edm::SingleChoiceNoProcessProductResolver::resetBranchDescription_ ( std::shared_ptr< BranchDescription const >  bd)
overrideprivatevirtual

Implements edm::ProductResolverBase.

Definition at line 1067 of file ProductResolvers.cc.

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

1067  {
1069  << "SingleChoiceNoProcessProductResolver::resetBranchDescription_() not implemented and should never be called.\n"
1070  << "Contact a Framework developer\n";
1071  }
void edm::SingleChoiceNoProcessProductResolver::resetProductData_ ( bool  deleteEarly)
overrideprivatevirtual

Implements edm::ProductResolverBase.

Definition at line 1011 of file ProductResolvers.cc.

1011  {
1012  }
std::string const& edm::SingleChoiceNoProcessProductResolver::resolvedModuleLabel_ ( ) const
inlineoverrideprivatevirtual
ProductResolverBase::Resolution edm::SingleChoiceNoProcessProductResolver::resolveProduct_ ( Principal const &  principal,
bool  skipCurrentProcess,
SharedResourcesAcquirer sra,
ModuleCallingContext const *  mcc 
) const
overrideprivatevirtual

Implements edm::ProductResolverBase.

Definition at line 977 of file ProductResolvers.cc.

References edm::Principal::getProductResolverByIndex().

982  {
983  //NOTE: Have to lookup the other ProductResolver each time rather than cache
984  // it's pointer since it appears the pointer can change at some later stage
985  return principal.getProductResolverByIndex(realResolverIndex_)
986  ->resolveProduct(principal,
987  skipCurrentProcess, sra, mcc);
988  }
def principal(options)
void edm::SingleChoiceNoProcessProductResolver::setProcessHistory_ ( ProcessHistory const &  ph)
overrideprivatevirtual

Implements edm::ProductResolverBase.

Definition at line 1004 of file ProductResolvers.cc.

1004  {
1005  }
void edm::SingleChoiceNoProcessProductResolver::setProvenance_ ( ProductProvenanceRetriever const *  provRetriever,
ProcessHistory const &  ph,
ProductID const &  pid 
)
overrideprivatevirtual

Implements edm::ProductResolverBase.

Definition at line 1001 of file ProductResolvers.cc.

1001  {
1002  }
bool edm::SingleChoiceNoProcessProductResolver::singleProduct_ ( ) const
overrideprivatevirtual

Implements edm::ProductResolverBase.

Definition at line 1014 of file ProductResolvers.cc.

1014  {
1015  return false;
1016  }
bool edm::SingleChoiceNoProcessProductResolver::unscheduledWasNotRun_ ( ) const
overrideprivatevirtual

Implements edm::ProductResolverBase.

Definition at line 1018 of file ProductResolvers.cc.

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

1018  {
1020  << "SingleChoiceNoProcessProductResolver::unscheduledWasNotRun_() not implemented and should never be called.\n"
1021  << "Contact a Framework developer\n";
1022  }

Member Data Documentation

ProductResolverIndex edm::SingleChoiceNoProcessProductResolver::realResolverIndex_
private

Definition at line 423 of file ProductResolvers.h.