1 #ifndef DataFormats_Common_BasicHandle_h 2 #define DataFormats_Common_BasicHandle_h 52 whyFailedFactory_(h.whyFailedFactory_){}
62 BasicHandle(std::shared_ptr<HandleExceptionFactory>
const& iWhyFailed):
65 whyFailedFactory_(iWhyFailed) {}
83 return product_ && prov_;
87 return bool(whyFailedFactory_);
99 return prov_->productID();
103 return whyFailedFactory_->make();
107 return whyFailedFactory_;
111 return whyFailedFactory_;
117 whyFailedFactory_.reset();
std::shared_ptr< HandleExceptionFactory > whyFailedFactory_
std::shared_ptr< cms::Exception > whyFailed() const
void swap(BasicHandle &a, BasicHandle &b)
BasicHandle & operator=(BasicHandle const &rhs)
WrapperBase const * product_
BasicHandle(std::shared_ptr< HandleExceptionFactory > const &iWhyFailed)
Used when the attempt to get the data failed.
BasicHandle(WrapperBase const *iProd, Provenance const *iProv)
Provenance const * provenance() const
void swap(BasicHandle &other)
void swap(edm::DataFrameContainer &lhs, edm::DataFrameContainer &rhs)
BasicHandle(BasicHandle const &h)
WrapperBase const * wrapper() const
std::shared_ptr< HandleExceptionFactory > & whyFailedFactory()
std::shared_ptr< HandleExceptionFactory > const & whyFailedFactory() const