CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
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 (WaitingTaskHolder 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 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, MergeableRunProductMetadata const *mergeableRunProductMetadata) const
 
void setMergeableRunProductMetadata (MergeableRunProductMetadata const *mrpm)
 
void setProductID (ProductID const &pid)
 
void setProductProvenanceRetriever (ProductProvenanceRetriever const *provRetriever)
 
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_ (WaitingTaskHolder 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 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 setProductID_ (ProductID const &pid) override
 
void setProductProvenanceRetriever_ (ProductProvenanceRetriever const *provRetriever) override
 
bool singleProduct_ () const override
 
bool unscheduledWasNotRun_ () const override
 

Private Attributes

ProductResolverIndex realResolverIndex_
 

Detailed Description

Definition at line 555 of file ProductResolvers.h.

Member Typedef Documentation

Definition at line 557 of file ProductResolvers.h.

Constructor & Destructor Documentation

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

Definition at line 558 of file ProductResolvers.h.

Member Function Documentation

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

Implements edm::ProductResolverBase.

Definition at line 1193 of file ProductResolvers.cc.

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

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

Implements edm::ProductResolverBase.

Definition at line 1211 of file ProductResolvers.cc.

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

1211  {
1213  << "SingleChoiceNoProcessProductResolver::connectTo() not implemented and should never be called.\n"
1214  << "Contact a Framework developer\n";
1215  }
void edm::SingleChoiceNoProcessProductResolver::prefetchAsync_ ( WaitingTaskHolder  waitTask,
Principal const &  principal,
bool  skipCurrentProcess,
ServiceToken const &  token,
SharedResourcesAcquirer sra,
ModuleCallingContext const *  mcc 
) const
overrideprivatevirtual

Implements edm::ProductResolverBase.

Definition at line 1143 of file ProductResolvers.cc.

References edm::Principal::getProductResolverByIndex(), and realResolverIndex_.

1148  {
1149  principal.getProductResolverByIndex(realResolverIndex_)
1150  ->prefetchAsync(waitTask, principal, skipCurrentProcess, token, sra, mcc);
1151  }
ProductProvenance const * edm::SingleChoiceNoProcessProductResolver::productProvenancePtr_ ( ) const
overrideprivatevirtual

Implements edm::ProductResolverBase.

Definition at line 1157 of file ProductResolvers.cc.

1157 { return nullptr; }
bool edm::SingleChoiceNoProcessProductResolver::productResolved_ ( ) const
finalprivatevirtual

Implements edm::ProductResolverBase.

Definition at line 1175 of file ProductResolvers.cc.

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

1175  {
1177  << "SingleChoiceNoProcessProductResolver::productResolved_() not implemented and should never be called.\n"
1178  << "Contact a Framework developer\n";
1179  }
bool edm::SingleChoiceNoProcessProductResolver::productUnavailable_ ( ) const
overrideprivatevirtual

Implements edm::ProductResolverBase.

Definition at line 1169 of file ProductResolvers.cc.

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

1169  {
1171  << "SingleChoiceNoProcessProductResolver::productUnavailable_() not implemented and should never be called.\n"
1172  << "Contact a Framework developer\n";
1173  }
bool edm::SingleChoiceNoProcessProductResolver::productWasDeleted_ ( ) const
overrideprivatevirtual

Implements edm::ProductResolverBase.

Definition at line 1181 of file ProductResolvers.cc.

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

1181  {
1183  << "SingleChoiceNoProcessProductResolver::productWasDeleted_() not implemented and should never be called.\n"
1184  << "Contact a Framework developer\n";
1185  }
bool edm::SingleChoiceNoProcessProductResolver::productWasFetchedAndIsValid_ ( bool  iSkipCurrentProcess) const
overrideprivatevirtual

Implements edm::ProductResolverBase.

Definition at line 1187 of file ProductResolvers.cc.

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

1187  {
1188  throw Exception(errors::LogicError) << "SingleChoiceNoProcessProductResolver::productWasFetchedAndIsValid_() not "
1189  "implemented and should never be called.\n"
1190  << "Contact a Framework developer\n";
1191  }
Provenance const * edm::SingleChoiceNoProcessProductResolver::provenance_ ( ) const
overrideprivatevirtual

Implements edm::ProductResolverBase.

Definition at line 1205 of file ProductResolvers.cc.

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

1205  {
1207  << "SingleChoiceNoProcessProductResolver::provenance_() not implemented and should never be called.\n"
1208  << "Contact a Framework developer\n";
1209  }
void edm::SingleChoiceNoProcessProductResolver::resetBranchDescription_ ( std::shared_ptr< BranchDescription const >  bd)
overrideprivatevirtual

Implements edm::ProductResolverBase.

Definition at line 1199 of file ProductResolvers.cc.

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

1199  {
1200  throw Exception(errors::LogicError) << "SingleChoiceNoProcessProductResolver::resetBranchDescription_() not "
1201  "implemented and should never be called.\n"
1202  << "Contact a Framework developer\n";
1203  }
void edm::SingleChoiceNoProcessProductResolver::resetProductData_ ( bool  deleteEarly)
overrideprivatevirtual

Implements edm::ProductResolverBase.

Definition at line 1159 of file ProductResolvers.cc.

1159 {}
std::string const& edm::SingleChoiceNoProcessProductResolver::resolvedModuleLabel_ ( ) const
inlineoverrideprivatevirtual

Implements edm::ProductResolverBase.

Definition at line 584 of file ProductResolvers.h.

References edm::ProductResolverBase::moduleLabel().

584 { return moduleLabel(); }
std::string const & moduleLabel() const
ProductResolverBase::Resolution edm::SingleChoiceNoProcessProductResolver::resolveProduct_ ( Principal const &  principal,
bool  skipCurrentProcess,
SharedResourcesAcquirer sra,
ModuleCallingContext const *  mcc 
) const
overrideprivatevirtual

Implements edm::ProductResolverBase.

Definition at line 1132 of file ProductResolvers.cc.

References edm::Principal::getProductResolverByIndex(), and realResolverIndex_.

1136  {
1137  //NOTE: Have to lookup the other ProductResolver each time rather than cache
1138  // it's pointer since it appears the pointer can change at some later stage
1139  return principal.getProductResolverByIndex(realResolverIndex_)
1140  ->resolveProduct(principal, skipCurrentProcess, sra, mcc);
1141  }
void edm::SingleChoiceNoProcessProductResolver::setProductID_ ( ProductID const &  pid)
overrideprivatevirtual

Implements edm::ProductResolverBase.

Definition at line 1155 of file ProductResolvers.cc.

1155 {}
void edm::SingleChoiceNoProcessProductResolver::setProductProvenanceRetriever_ ( ProductProvenanceRetriever const *  provRetriever)
overrideprivatevirtual

Implements edm::ProductResolverBase.

Definition at line 1153 of file ProductResolvers.cc.

1153 {}
bool edm::SingleChoiceNoProcessProductResolver::singleProduct_ ( ) const
overrideprivatevirtual

Implements edm::ProductResolverBase.

Definition at line 1161 of file ProductResolvers.cc.

1161 { return false; }
bool edm::SingleChoiceNoProcessProductResolver::unscheduledWasNotRun_ ( ) const
overrideprivatevirtual

Implements edm::ProductResolverBase.

Definition at line 1163 of file ProductResolvers.cc.

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

1163  {
1165  << "SingleChoiceNoProcessProductResolver::unscheduledWasNotRun_() not implemented and should never be called.\n"
1166  << "Contact a Framework developer\n";
1167  }

Member Data Documentation

ProductResolverIndex edm::SingleChoiceNoProcessProductResolver::realResolverIndex_
private

Definition at line 591 of file ProductResolvers.h.

Referenced by prefetchAsync_(), and resolveProduct_().