#include <DataFormats/Common/interface/BasicHandle.h>
Public Member Functions | |
BasicHandle (const boost::shared_ptr< cms::Exception > &iWhyFailed) | |
Used when the attempt to get the data failed. | |
BasicHandle (EDProduct const *prod, Provenance const *prov) | |
BasicHandle (BasicHandle const &h) | |
BasicHandle () | |
bool | failedToGet () const |
ProductID | id () const |
bool | isValid () const |
BasicHandle & | operator= (BasicHandle const &rhs) |
Provenance const * | provenance () const |
void | swap (BasicHandle &other) |
boost::shared_ptr< cms::Exception > | whyFailed () const |
EDProduct const * | wrapper () const |
~BasicHandle () | |
Private Attributes | |
Provenance const * | prov_ |
boost::shared_ptr< cms::Exception > | whyFailed_ |
EDProduct const * | wrap_ |
Definition at line 37 of file BasicHandle.h.
edm::BasicHandle::BasicHandle | ( | ) | [inline] |
edm::BasicHandle::BasicHandle | ( | BasicHandle const & | h | ) | [inline] |
edm::BasicHandle::BasicHandle | ( | EDProduct const * | prod, | |
Provenance const * | prov | |||
) | [inline] |
edm::BasicHandle::BasicHandle | ( | const boost::shared_ptr< cms::Exception > & | iWhyFailed | ) | [inline] |
Used when the attempt to get the data failed.
Definition at line 53 of file BasicHandle.h.
00053 : 00054 wrap_(0), 00055 prov_(0), 00056 whyFailed_(iWhyFailed) {}
edm::BasicHandle::~BasicHandle | ( | ) | [inline] |
bool edm::BasicHandle::failedToGet | ( | ) | const [inline] |
Definition at line 78 of file BasicHandle.h.
References whyFailed_.
Referenced by edm::convert_handle(), edm::DataViewImpl::get(), edm::Event::get(), edm::DataViewImpl::getByLabel(), and edm::DataViewImpl::getByType().
00078 { 00079 return 0 != whyFailed_.get(); 00080 }
Definition at line 90 of file BasicHandle.h.
References edm::Provenance::productID(), and prov_.
Referenced by edm::convert_handle(), and edm::Event::fillView_().
00090 { 00091 if (!prov_) { 00092 return ProductID(); 00093 } 00094 return prov_->productID(); 00095 }
BasicHandle& edm::BasicHandle::operator= | ( | BasicHandle const & | rhs | ) | [inline] |
Definition at line 68 of file BasicHandle.h.
References swap(), and pyDBSRunClass::temp.
00068 { 00069 BasicHandle temp(rhs); 00070 this->swap(temp); 00071 return *this; 00072 }
Provenance const* edm::BasicHandle::provenance | ( | ) | const [inline] |
Definition at line 86 of file BasicHandle.h.
References prov_.
Referenced by edm::convert_handle(), edm::Event::fillView_(), and edm::Event::get().
00086 { 00087 return prov_; 00088 }
void edm::BasicHandle::swap | ( | BasicHandle & | other | ) | [inline] |
Definition at line 60 of file BasicHandle.h.
References prov_, std::swap(), whyFailed_, and wrap_.
Referenced by operator=(), and edm::swap().
00060 { 00061 using std::swap; 00062 std::swap(wrap_, other.wrap_); 00063 std::swap(prov_, other.prov_); 00064 swap(whyFailed_,other.whyFailed_); 00065 }
boost::shared_ptr<cms::Exception> edm::BasicHandle::whyFailed | ( | ) | const [inline] |
Definition at line 97 of file BasicHandle.h.
References whyFailed_.
Referenced by edm::convert_handle().
00097 { 00098 return whyFailed_; 00099 }
EDProduct const* edm::BasicHandle::wrapper | ( | ) | const [inline] |
Definition at line 82 of file BasicHandle.h.
References wrap_.
Referenced by edm::convert_handle(), edm::Event::fillView_(), and edm::EventPrincipal::getIt().
00082 { 00083 return wrap_; 00084 }
Provenance const* edm::BasicHandle::prov_ [private] |
Definition at line 102 of file BasicHandle.h.
Referenced by id(), isValid(), provenance(), and swap().
boost::shared_ptr<cms::Exception> edm::BasicHandle::whyFailed_ [private] |
EDProduct const* edm::BasicHandle::wrap_ [private] |