#include <BasicHandle.h>
Public Member Functions | |
BasicHandle () | |
BasicHandle (BasicHandle const &h) | |
BasicHandle (boost::shared_ptr< cms::Exception > const &iWhyFailed) | |
Used when the attempt to get the data failed. | |
BasicHandle (boost::shared_ptr< EDProduct const > prod, Provenance const *prov) | |
bool | failedToGet () const |
ProductID | id () const |
bool | isValid () const |
BasicHandle & | operator= (BasicHandle const &rhs) |
boost::shared_ptr< EDProduct const > | product () const |
Provenance const * | provenance () const |
void | swap (BasicHandle &other) |
boost::shared_ptr< cms::Exception > | whyFailed () const |
EDProduct const * | wrapper () const |
~BasicHandle () | |
Private Attributes | |
boost::shared_ptr< EDProduct const > | product_ |
Provenance const * | prov_ |
boost::shared_ptr< cms::Exception > | whyFailed_ |
Definition at line 41 of file BasicHandle.h.
edm::BasicHandle::BasicHandle | ( | ) | [inline] |
Definition at line 43 of file BasicHandle.h.
edm::BasicHandle::BasicHandle | ( | BasicHandle const & | h | ) | [inline] |
Definition at line 47 of file BasicHandle.h.
edm::BasicHandle::BasicHandle | ( | boost::shared_ptr< EDProduct const > | prod, |
Provenance const * | prov | ||
) | [inline] |
Definition at line 52 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 58 of file BasicHandle.h.
: product_(), prov_(0), whyFailed_(iWhyFailed) {}
edm::BasicHandle::~BasicHandle | ( | ) | [inline] |
Definition at line 63 of file BasicHandle.h.
{}
bool edm::BasicHandle::failedToGet | ( | ) | const [inline] |
Definition at line 83 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 99 of file BasicHandle.h.
References edm::Provenance::productID(), and prov_.
Referenced by edm::convert_handle(), and edm::Event::fillView_().
{ return prov_->productID(); }
bool edm::BasicHandle::isValid | ( | void | ) | const [inline] |
Definition at line 79 of file BasicHandle.h.
References product_, and prov_.
Referenced by edm::Principal::findGroup(), edm::Principal::findGroupByLabel(), edm::Event::getByLabelImpl(), edm::LuminosityBlock::getByLabelImpl(), and edm::Run::getByLabelImpl().
BasicHandle& edm::BasicHandle::operator= | ( | BasicHandle const & | rhs | ) | [inline] |
Definition at line 73 of file BasicHandle.h.
References swap(), and cond::rpcobtemp::temp.
{ BasicHandle temp(rhs); this->swap(temp); return *this; }
boost::shared_ptr<EDProduct const> edm::BasicHandle::product | ( | ) | const [inline] |
Provenance const* edm::BasicHandle::provenance | ( | ) | const [inline] |
Definition at line 95 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 65 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 103 of file BasicHandle.h.
References whyFailed_.
Referenced by edm::convert_handle().
{ return whyFailed_; }
EDProduct const* edm::BasicHandle::wrapper | ( | ) | const [inline] |
Definition at line 87 of file BasicHandle.h.
References product_.
Referenced by edm::convert_handle(), edm::Event::fillView_(), and edm::EventPrincipal::getIt().
{ return product_.get(); }
boost::shared_ptr<EDProduct const> edm::BasicHandle::product_ [private] |
Provenance const* edm::BasicHandle::prov_ [private] |
Definition at line 108 of file BasicHandle.h.
Referenced by id(), isValid(), provenance(), and swap().
boost::shared_ptr<cms::Exception> edm::BasicHandle::whyFailed_ [private] |
Definition at line 109 of file BasicHandle.h.
Referenced by failedToGet(), swap(), and whyFailed().