1 #ifndef FWCore_Framework_GenericHandle_h 2 #define FWCore_Framework_GenericHandle_h 49 "Handle<GenericObject> told to use uknown type '",
51 "'.\n Please check spelling or that a module uses this type in the job.");
63 : type_(h.type_), prod_(h.prod_), prov_(h.prov_), whyFailedFactory_(h.whyFailedFactory_) {}
66 : type_(prod.typeOf()), prod_(prod), prov_(prov) {
88 bool isValid()
const {
return prod_ &&
nullptr != prov_; }
92 if (this->failedToGet()) {
93 whyFailedFactory_->make()->raise();
107 whyFailedFactory_ =
nullptr;
111 whyFailedFactory_ = iWhyFailed;
ObjectWithDict const & operator*() const
Handle(Handle< GenericObject > const &h)
Provenance const * provenance() const
FWCore Framework interface EventSetupRecordImplementation h
Helper function to determine trigger accepts.
Handle(ObjectWithDict const &prod, Provenance const *prov, ProductID const &)
Handle(std::string const &iName)
Throws exception if iName is not a known C++ class type.
ObjectWithDict const * operator->() const
void swap(Association< C > &lhs, Association< C > &rhs)
static void throwThis(Code category, char const *message0="", char const *message1="", char const *message2="", char const *message3="", char const *message4="")
TypeWithDict const & type() const
void swap(edm::DataFrameContainer &lhs, edm::DataFrameContainer &rhs)
Handle< T > convert_handle(BasicHandle &&bh)(true)
ObjectWithDict const * product() const
Handle< GenericObject > GenericHandle
Handle< GenericObject > & operator=(Handle< GenericObject > const &rhs)
bool getByLabel(InputTag const &tag, Handle< PROD > &result) const
void setWhyFailedFactory(std::shared_ptr< HandleExceptionFactory > const &iWhyFailed)
Handle(TypeWithDict const &iType)
Throws exception if iType is invalid.
void swap(Handle< GenericObject > &other)
This class is just a 'tag' used to allow a specialization of edm::Handle.
std::shared_ptr< HandleExceptionFactory > whyFailedFactory_