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::UnscheduledProductHolder Class Reference

#include <ProductHolder.h>

Inheritance diagram for edm::UnscheduledProductHolder:
edm::ProducedProductHolder edm::ProductHolderBase

Public Member Functions

 UnscheduledProductHolder (boost::shared_ptr< ConstBranchDescription > bd, Principal *principal)
 
virtual ~UnscheduledProductHolder ()
 
- Public Member Functions inherited from edm::ProducedProductHolder
 ProducedProductHolder ()
 
void producerCompleted ()
 
void producerStarted ()
 
ProductStatusstatus () const
 
virtual ~ProducedProductHolder ()
 
- Public Member Functions inherited from edm::ProductHolderBase
ConstBranchDescription 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< ConstBranchDescription > bd)
 
void resetProductData ()
 
void resetStatus ()
 
std::string const & resolvedModuleLabel () const
 
ProductData const * resolveProduct (ResolveStatus &resolveStatus, bool skipCurrentProcess) const
 
void setPrincipal (Principal *principal)
 
void setProcessHistoryID (ProcessHistoryID const &phid)
 
void setProductDeleted ()
 
void setProductProvenance (ProductProvenance const &prov) const
 
void setProvenance (boost::shared_ptr< BranchMapper > mapper, ProcessHistoryID const &phid, 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) const
 
virtual ProductStatusstatus_ () const
 
virtual void swap_ (ProductHolderBase &rhs)
 

Private Attributes

Principalprincipal_
 
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 330 of file ProductHolder.h.

Constructor & Destructor Documentation

edm::UnscheduledProductHolder::UnscheduledProductHolder ( boost::shared_ptr< ConstBranchDescription bd,
Principal principal 
)
inlineexplicit
edm::UnscheduledProductHolder::~UnscheduledProductHolder ( )
virtual

Definition at line 33 of file ProductHolder.cc.

33 {}

Member Function Documentation

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

Implements edm::ProductHolderBase.

Definition at line 344 of file ProductHolder.h.

References productData_.

344 {return productData_;}
virtual ProductData& edm::UnscheduledProductHolder::getProductData ( )
inlineprivatevirtual

Implements edm::ProductHolderBase.

Definition at line 345 of file ProductHolder.h.

References productData_.

345 {return productData_;}
virtual bool edm::UnscheduledProductHolder::onDemand_ ( ) const
inlineprivatevirtual
virtual void edm::UnscheduledProductHolder::resetStatus_ ( )
inlineprivatevirtual
ProductData const * edm::UnscheduledProductHolder::resolveProduct_ ( ResolveStatus resolveStatus,
bool  skipCurrentProcess 
) const
privatevirtual

Implements edm::ProductHolderBase.

Definition at line 87 of file ProductHolder.cc.

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

87  {
88  if (!skipCurrentProcess) {
89  if(productWasDeleted()) {
91  }
92  if(product() && wrapper().isPresent()) {
93  resolveStatus = ProductFound;
94  return &productData_;
95  }
97  if(product() && wrapper().isPresent()) {
98  resolveStatus = ProductFound;
99  return &productData_;
100  }
101  }
102  resolveStatus = ProductNotFound;
103  return nullptr;
104  }
boost::shared_ptr< void const > product() const
Definition: ProductHolder.h:81
std::string const & moduleLabel() const
bool productWasDeleted() const
Definition: ProductHolder.h:78
void throwProductDeletedException() const
virtual bool unscheduledFill(std::string const &moduleLabel) const =0
WrapperHolder wrapper() const
Definition: ProductHolder.h:84
virtual ProductStatus& edm::UnscheduledProductHolder::status_ ( ) const
inlineprivatevirtual

Implements edm::ProducedProductHolder.

Definition at line 346 of file ProductHolder.h.

References theStatus_.

346 {return theStatus_;}
virtual void edm::UnscheduledProductHolder::swap_ ( ProductHolderBase rhs)
inlineprivatevirtual

Implements edm::ProductHolderBase.

Definition at line 336 of file ProductHolder.h.

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

336  {
337  UnscheduledProductHolder& other = dynamic_cast<UnscheduledProductHolder&>(rhs);
338  edm::swap(productData_, other.productData_);
339  std::swap(theStatus_, other.theStatus_);
340  }
void swap(Association< C > &lhs, Association< C > &rhs)
Definition: Association.h:117
void swap(edm::DataFrameContainer &lhs, edm::DataFrameContainer &rhs)
UnscheduledProductHolder(boost::shared_ptr< ConstBranchDescription > bd, Principal *principal)

Member Data Documentation

Principal* edm::UnscheduledProductHolder::principal_
private

Definition at line 350 of file ProductHolder.h.

Referenced by resolveProduct_().

ProductData edm::UnscheduledProductHolder::productData_
private

Definition at line 348 of file ProductHolder.h.

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

ProductStatus edm::UnscheduledProductHolder::theStatus_
mutableprivate

Definition at line 349 of file ProductHolder.h.

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