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

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

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

Implements edm::ProductResolverBase.

Definition at line 1078 of file ProductResolvers.cc.

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

1078  {
1080  << "SingleChoiceNoProcessProductResolver::connectTo() not implemented and should never be called.\n"
1081  << "Contact a Framework developer\n";
1082 
1083  }
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 989 of file ProductResolvers.cc.

References edm::Principal::getProductResolverByIndex().

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

Implements edm::ProductResolverBase.

Definition at line 1006 of file ProductResolvers.cc.

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

Implements edm::ProductResolverBase.

Definition at line 1029 of file ProductResolvers.cc.

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

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

Implements edm::ProductResolverBase.

Definition at line 1023 of file ProductResolvers.cc.

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

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

Implements edm::ProductResolverBase.

Definition at line 1035 of file ProductResolvers.cc.

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

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

Implements edm::ProductResolverBase.

Definition at line 1041 of file ProductResolvers.cc.

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

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

Implements edm::ProductResolverBase.

Definition at line 1072 of file ProductResolvers.cc.

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

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

Implements edm::ProductResolverBase.

Definition at line 1054 of file ProductResolvers.cc.

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

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

Implements edm::ProductResolverBase.

Definition at line 1048 of file ProductResolvers.cc.

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

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

Implements edm::ProductResolverBase.

Definition at line 1066 of file ProductResolvers.cc.

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

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

Implements edm::ProductResolverBase.

Definition at line 1010 of file ProductResolvers.cc.

1010  {
1011  }
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 976 of file ProductResolvers.cc.

References edm::Principal::getProductResolverByIndex().

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

Implements edm::ProductResolverBase.

Definition at line 1003 of file ProductResolvers.cc.

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

Implements edm::ProductResolverBase.

Definition at line 1000 of file ProductResolvers.cc.

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

Implements edm::ProductResolverBase.

Definition at line 1013 of file ProductResolvers.cc.

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

Implements edm::ProductResolverBase.

Definition at line 1017 of file ProductResolvers.cc.

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

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

Member Data Documentation

ProductResolverIndex edm::SingleChoiceNoProcessProductResolver::realResolverIndex_
private

Definition at line 423 of file ProductResolvers.h.