1 #ifndef DataFormats_Common_HandleBase_h 2 #define DataFormats_Common_HandleBase_h 54 whyFailedFactory_.reset();
70 bool isValid()
const {
return product_ && prov_; }
81 HandleBase(std::shared_ptr<HandleExceptionFactory>&& iWhyFailed)
82 : product_(), prov_(
nullptr), whyFailedFactory_(iWhyFailed) {}
87 whyFailedFactory_ =
std::move(rhs.whyFailedFactory_);
92 if (whyFailedFactory_.get()) {
93 return whyFailedFactory_->make();
95 return std::shared_ptr<cms::Exception>();
98 std::shared_ptr<HandleExceptionFactory>
const&
whyFailedFactory()
const {
return whyFailedFactory_; }
100 explicit operator bool()
const {
return isValid(); }
105 void const* productStorage()
const;
std::shared_ptr< HandleExceptionFactory > const & whyFailedFactory() const
std::shared_ptr< HandleExceptionFactory > whyFailedFactory_
void swap(HandleBase &a, HandleBase &b)
void swap(edm::DataFrameContainer &lhs, edm::DataFrameContainer &rhs)
HandleBase(std::shared_ptr< HandleExceptionFactory > &&iWhyFailed)
Used when the attempt to get the data failed.
void swap(HandleBase &other)
Namespace of DDCMS conversion namespace.
HandleBase & operator=(HandleBase &&rhs)
std::shared_ptr< cms::Exception > whyFailed() const
HandleBase(void const *prod, Provenance const *prov)
Provenance const * provenance() const
HandleBase & operator=(HandleBase const &rhs)