#include <BasicHandle.h>
Public Member Functions | |
BasicHandle () | |
BasicHandle (BasicHandle const &h) | |
BasicHandle (WrapperHolder const &iWrapperHolder, Provenance const *iProv) | |
BasicHandle (ProductData const &productData) | |
BasicHandle (void const *iProd, WrapperInterfaceBase const *iInterface, Provenance const *iProv) | |
BasicHandle (boost::shared_ptr< cms::Exception > const &iWhyFailed) | |
Used when the attempt to get the data failed. | |
bool | failedToGet () const |
ProductID | id () const |
WrapperInterfaceBase const * | interface () const |
bool | isValid () const |
BasicHandle & | operator= (BasicHandle const &rhs) |
Provenance const * | provenance () const |
void | swap (BasicHandle &other) |
boost::shared_ptr< cms::Exception > | whyFailed () const |
void const * | wrapper () const |
WrapperHolder | wrapperHolder () const |
~BasicHandle () | |
Private Attributes | |
WrapperHolder | product_ |
Provenance const * | prov_ |
boost::shared_ptr< cms::Exception > | whyFailed_ |
Definition at line 43 of file BasicHandle.h.
edm::BasicHandle::BasicHandle | ( | ) | [inline] |
Definition at line 45 of file BasicHandle.h.
edm::BasicHandle::BasicHandle | ( | BasicHandle const & | h | ) | [inline] |
Definition at line 49 of file BasicHandle.h.
edm::BasicHandle::BasicHandle | ( | void const * | iProd, |
WrapperInterfaceBase const * | iInterface, | ||
Provenance const * | iProv | ||
) | [inline] |
Definition at line 54 of file BasicHandle.h.
edm::BasicHandle::BasicHandle | ( | WrapperHolder const & | iWrapperHolder, |
Provenance const * | iProv | ||
) | [inline] |
Definition at line 59 of file BasicHandle.h.
edm::BasicHandle::BasicHandle | ( | ProductData const & | productData | ) | [inline] |
Definition at line 64 of file BasicHandle.h.
edm::BasicHandle::BasicHandle | ( | boost::shared_ptr< cms::Exception > const & | iWhyFailed | ) | [inline] |
Used when the attempt to get the data failed.
Definition at line 70 of file BasicHandle.h.
: product_(), prov_(0), whyFailed_(iWhyFailed) {}
edm::BasicHandle::~BasicHandle | ( | ) | [inline] |
Definition at line 75 of file BasicHandle.h.
{}
bool edm::BasicHandle::failedToGet | ( | ) | const [inline] |
Definition at line 94 of file BasicHandle.h.
References whyFailed_.
Referenced by edm::convert_handle(), edm::Event::get(), edm::PrincipalGetAdapter::get(), edm::Event::getByLabel(), edm::RunBase::getByLabel(), edm::EventBase::getByLabel(), edm::PrincipalGetAdapter::getByLabel(), edm::LuminosityBlockBase::getByLabel(), and edm::PrincipalGetAdapter::getByType().
{ return 0 != whyFailed_.get(); }
ProductID edm::BasicHandle::id | ( | void | ) | const [inline] |
Definition at line 114 of file BasicHandle.h.
References edm::Provenance::productID(), and prov_.
Referenced by edm::convert_handle(), and edm::Event::fillView_().
{ return prov_->productID(); }
WrapperInterfaceBase const* edm::BasicHandle::interface | ( | ) | const [inline] |
Definition at line 98 of file BasicHandle.h.
References edm::WrapperHolder::interface(), and product_.
Referenced by edm::convert_handle(), and edm::Event::fillView_().
{ return product_.interface(); }
bool edm::BasicHandle::isValid | ( | void | ) | const [inline] |
Definition at line 90 of file BasicHandle.h.
References product_, prov_, and edm::WrapperHolder::wrapper().
Referenced by edm::Principal::findGroup(), edm::Event::getByLabelImpl(), edm::Run::getByLabelImpl(), and edm::LuminosityBlock::getByLabelImpl().
BasicHandle& edm::BasicHandle::operator= | ( | BasicHandle const & | rhs | ) | [inline] |
Definition at line 84 of file BasicHandle.h.
References swap(), and cond::rpcobtemp::temp.
{ BasicHandle temp(rhs); this->swap(temp); return *this; }
Provenance const* edm::BasicHandle::provenance | ( | ) | const [inline] |
Definition at line 110 of file BasicHandle.h.
References prov_.
Referenced by edm::check(), edm::convert_handle(), edm::Event::fillView_(), edm::Event::get(), edm::Event::getByLabel(), edm::Event::getByLabelImpl(), edm::LuminosityBlock::getByLabelImpl(), and edm::Run::getByLabelImpl().
{ return prov_; }
void edm::BasicHandle::swap | ( | BasicHandle & | other | ) | [inline] |
Definition at line 77 of file BasicHandle.h.
References product_, prov_, and whyFailed_.
Referenced by operator=(), and edm::swap().
boost::shared_ptr<cms::Exception> edm::BasicHandle::whyFailed | ( | ) | const [inline] |
Definition at line 118 of file BasicHandle.h.
References whyFailed_.
Referenced by edm::convert_handle().
{ return whyFailed_; }
void const* edm::BasicHandle::wrapper | ( | ) | const [inline] |
Definition at line 102 of file BasicHandle.h.
References product_, and edm::WrapperHolder::wrapper().
Referenced by edm::convert_handle(), and edm::Event::fillView_().
{ return product_.wrapper(); }
WrapperHolder edm::BasicHandle::wrapperHolder | ( | ) | const [inline] |
Definition at line 106 of file BasicHandle.h.
References product_.
Referenced by edm::convert_handle(), and edm::EventPrincipal::getIt().
{ return product_; }
WrapperHolder edm::BasicHandle::product_ [private] |
Definition at line 122 of file BasicHandle.h.
Referenced by interface(), isValid(), swap(), wrapper(), and wrapperHolder().
Provenance const* edm::BasicHandle::prov_ [private] |
Definition at line 123 of file BasicHandle.h.
Referenced by id(), isValid(), provenance(), and swap().
boost::shared_ptr<cms::Exception> edm::BasicHandle::whyFailed_ [private] |
Definition at line 124 of file BasicHandle.h.
Referenced by failedToGet(), swap(), and whyFailed().