CMS 3D CMS Logo

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

#include <ProductHolder.h>

Inheritance diagram for edm::ScheduledProductHolder:
edm::ProducedProductHolder edm::ProductHolderBase

Public Member Functions

 ScheduledProductHolder (boost::shared_ptr< BranchDescription const > bd)
 
virtual ~ScheduledProductHolder ()
 
- Public Member Functions inherited from edm::ProducedProductHolder
 ProducedProductHolder ()
 
void producerCompleted ()
 
void producerStarted ()
 
ProductStatusstatus () const
 
virtual ~ProducedProductHolder ()
 
- Public Member Functions inherited from edm::ProductHolderBase
BranchDescription const & branchDescription () const
 
void checkType (WrapperOwningHolder const &prod) const
 
void deleteProduct ()
 
void mergeProduct (WrapperOwningHolder const &edp, ProductProvenance &productProvenance)
 
void mergeProduct (WrapperOwningHolder const &edp) const
 
void mergeTheProduct (WrapperOwningHolder const &edp) const
 
std::string const & moduleLabel () const
 
bool onDemand () const
 
ProductHolderBaseoperator= (ProductHolderBase const &)=delete
 
std::string const & processName () const
 
boost::shared_ptr< void const > product () const
 
ProductData const & productData () const
 
ProductDataproductData ()
 
 ProductHolderBase ()
 
 ProductHolderBase (ProductHolderBase const &)=delete
 
ProductID const & productID () const
 
std::string const & productInstanceName () const
 
ProductProvenanceproductProvenancePtr () const
 
TypeID productType () const
 
bool productUnavailable () const
 
bool productWasDeleted () const
 
Provenanceprovenance () const
 
bool provenanceAvailable () const
 
bool putOrMergeProduct () const
 
void putProduct (WrapperOwningHolder const &edp, ProductProvenance const &productProvenance)
 
void putProduct (WrapperOwningHolder const &edp) const
 
void reallyCheckType (WrapperOwningHolder const &prod) const
 
void resetBranchDescription (boost::shared_ptr< BranchDescription const > bd)
 
void resetProductData ()
 
void resetStatus ()
 
std::string const & resolvedModuleLabel () const
 
ProductData const * resolveProduct (ResolveStatus &resolveStatus, bool skipCurrentProcess, ModuleCallingContext const *mcc) const
 
void setPrincipal (Principal *principal)
 
void setProcessHistory (ProcessHistory const &ph)
 
void setProductDeleted ()
 
void setProductProvenance (ProductProvenance const &prov) const
 
void setProvenance (boost::shared_ptr< ProductProvenanceRetriever > provRetriever, ProcessHistory const &ph, ProductID const &pid)
 
bool singleProduct () const
 
void swap (ProductHolderBase &rhs)
 
void throwProductDeletedException () const
 
WrapperHolder wrapper () const
 
void write (std::ostream &os) const
 
virtual ~ProductHolderBase ()
 

Private Member Functions

virtual ProductData const & getProductData () const
 
virtual ProductDatagetProductData ()
 
virtual bool onDemand_ () const
 
virtual void resetStatus_ ()
 
virtual ProductData const * resolveProduct_ (ResolveStatus &resolveStatus, bool skipCurrentProcess, ModuleCallingContext const *mcc) const
 
virtual ProductStatusstatus_ () const
 
virtual void swap_ (ProductHolderBase &rhs)
 

Private Attributes

ProductData productData_
 
ProductStatus theStatus_
 

Additional Inherited Members

- Public Types inherited from edm::ProducedProductHolder
enum  ProductStatus {
  Present = 0, NotRun = 3, NotCompleted = 4, NotPut = 5,
  UnscheduledNotRun = 6, ProductDeleted =7, Uninitialized = 0xff
}
 
- Public Types inherited from edm::ProductHolderBase
enum  ResolveStatus { ProductFound, ProductNotFound, Ambiguous }
 

Detailed Description

Definition at line 308 of file ProductHolder.h.

Constructor & Destructor Documentation

edm::ScheduledProductHolder::ScheduledProductHolder ( boost::shared_ptr< BranchDescription const >  bd)
inlineexplicit
edm::ScheduledProductHolder::~ScheduledProductHolder ( )
virtual

Definition at line 32 of file ProductHolder.cc.

32 {}

Member Function Documentation

virtual ProductData const& edm::ScheduledProductHolder::getProductData ( ) const
inlineprivatevirtual

Implements edm::ProductHolderBase.

Definition at line 322 of file ProductHolder.h.

References productData_.

322 {return productData_;}
virtual ProductData& edm::ScheduledProductHolder::getProductData ( )
inlineprivatevirtual

Implements edm::ProductHolderBase.

Definition at line 323 of file ProductHolder.h.

References productData_.

323 {return productData_;}
virtual bool edm::ScheduledProductHolder::onDemand_ ( ) const
inlineprivatevirtual

Implements edm::ProductHolderBase.

Definition at line 321 of file ProductHolder.h.

321 {return false;}
virtual void edm::ScheduledProductHolder::resetStatus_ ( )
inlineprivatevirtual
ProductData const * edm::ScheduledProductHolder::resolveProduct_ ( ResolveStatus resolveStatus,
bool  skipCurrentProcess,
ModuleCallingContext const *  mcc 
) const
privatevirtual

Implements edm::ProductHolderBase.

Definition at line 58 of file ProductHolder.cc.

References edm::ProductHolderBase::product(), productData_, edm::ProductHolderBase::ProductFound, edm::ProductHolderBase::ProductNotFound, edm::ProductHolderBase::productWasDeleted(), edm::ProductHolderBase::throwProductDeletedException(), and edm::ProductHolderBase::wrapper().

59  {
60  if (!skipCurrentProcess) {
61  if(productWasDeleted()) {
63  }
64  if(product() && wrapper().isPresent()) {
65  resolveStatus = ProductFound;
66  return &productData_;
67  }
68  }
69  resolveStatus = ProductNotFound;
70  return nullptr;
71  }
boost::shared_ptr< void const > product() const
Definition: ProductHolder.h:83
bool productWasDeleted() const
Definition: ProductHolder.h:80
void throwProductDeletedException() const
WrapperHolder wrapper() const
Definition: ProductHolder.h:86
virtual ProductStatus& edm::ScheduledProductHolder::status_ ( ) const
inlineprivatevirtual

Implements edm::ProducedProductHolder.

Definition at line 324 of file ProductHolder.h.

References theStatus_.

324 {return theStatus_;}
virtual void edm::ScheduledProductHolder::swap_ ( ProductHolderBase rhs)
inlineprivatevirtual

Implements edm::ProductHolderBase.

Definition at line 313 of file ProductHolder.h.

References productData_, edm::swap(), std::swap(), and theStatus_.

313  {
314  ScheduledProductHolder& other = dynamic_cast<ScheduledProductHolder&>(rhs);
315  edm::swap(productData_, other.productData_);
316  std::swap(theStatus_, other.theStatus_);
317  }
void swap(Association< C > &lhs, Association< C > &rhs)
Definition: Association.h:116
void swap(edm::DataFrameContainer &lhs, edm::DataFrameContainer &rhs)
ScheduledProductHolder(boost::shared_ptr< BranchDescription const > bd)

Member Data Documentation

ProductData edm::ScheduledProductHolder::productData_
private

Definition at line 326 of file ProductHolder.h.

Referenced by getProductData(), resolveProduct_(), and swap_().

ProductStatus edm::ScheduledProductHolder::theStatus_
mutableprivate

Definition at line 327 of file ProductHolder.h.

Referenced by resetStatus_(), status_(), and swap_().