#include <OutputHandle.h>
Public Member Functions | |
ConstBranchDescription const * | desc () const |
bool | failedToGet () const |
bool | isValid () const |
OutputHandle & | operator= (OutputHandle const &rhs) |
OutputHandle (boost::shared_ptr< cms::Exception > const &iWhyFailed) | |
Used when the attempt to get the data failed. | |
OutputHandle (OutputHandle const &h) | |
OutputHandle (WrapperHolder const &product, ConstBranchDescription const *desc, ProductProvenance *productProvenance) | |
OutputHandle () | |
WrapperHolder | product () const |
ProductProvenance const * | productProvenance () const |
void | swap (OutputHandle &other) |
boost::shared_ptr< cms::Exception > | whyFailed () const |
void const * | wrapper () const |
~OutputHandle () | |
Private Attributes | |
ConstBranchDescription const * | desc_ |
WrapperHolder | product_ |
ProductProvenance * | productProvenance_ |
boost::shared_ptr< cms::Exception > | whyFailed_ |
Definition at line 39 of file OutputHandle.h.
edm::OutputHandle::OutputHandle | ( | ) | [inline] |
Definition at line 41 of file OutputHandle.h.
: product_(), desc_(0), productProvenance_(0) {}
edm::OutputHandle::OutputHandle | ( | OutputHandle const & | h | ) | [inline] |
Definition at line 46 of file OutputHandle.h.
: product_(h.product_), desc_(h.desc_), productProvenance_(h.productProvenance_), whyFailed_(h.whyFailed_){}
edm::OutputHandle::OutputHandle | ( | WrapperHolder const & | product, |
ConstBranchDescription const * | desc, | ||
ProductProvenance * | productProvenance | ||
) | [inline] |
Definition at line 52 of file OutputHandle.h.
: product_(product), desc_(desc), productProvenance_(productProvenance) {}
edm::OutputHandle::OutputHandle | ( | boost::shared_ptr< cms::Exception > const & | iWhyFailed | ) | [inline] |
Used when the attempt to get the data failed.
Definition at line 58 of file OutputHandle.h.
: product_(), desc_(0), productProvenance_(0), whyFailed_(iWhyFailed) {}
edm::OutputHandle::~OutputHandle | ( | ) | [inline] |
Definition at line 64 of file OutputHandle.h.
{}
ConstBranchDescription const* edm::OutputHandle::desc | ( | ) | const [inline] |
Definition at line 105 of file OutputHandle.h.
References desc_.
Referenced by edm::check().
{ return desc_; }
bool edm::OutputHandle::failedToGet | ( | ) | const [inline] |
Definition at line 85 of file OutputHandle.h.
References whyFailed_.
{ return 0 != whyFailed_.get(); }
bool edm::OutputHandle::isValid | ( | void | ) | const [inline] |
Definition at line 81 of file OutputHandle.h.
References desc_, edm::WrapperHolder::isValid(), product_, and productProvenance_.
{ return product_.isValid() && desc_ &&productProvenance_; }
OutputHandle& edm::OutputHandle::operator= | ( | OutputHandle const & | rhs | ) | [inline] |
Definition at line 75 of file OutputHandle.h.
References swap(), and groupFilesInBlocks::temp.
{ OutputHandle temp(rhs); this->swap(temp); return *this; }
WrapperHolder edm::OutputHandle::product | ( | ) | const [inline] |
ProductProvenance const* edm::OutputHandle::productProvenance | ( | ) | const [inline] |
Definition at line 101 of file OutputHandle.h.
References productProvenance_.
Referenced by edm::RootOutputFile::fillBranches(), and edm::StreamSerializer::serializeEvent().
{ return productProvenance_; }
void edm::OutputHandle::swap | ( | OutputHandle & | other | ) | [inline] |
Definition at line 66 of file OutputHandle.h.
References desc_, product_, productProvenance_, and whyFailed_.
Referenced by operator=(), and edm::swap().
{ using std::swap; std::swap(product_, other.product_); std::swap(desc_, other.desc_); std::swap(productProvenance_, other.productProvenance_); swap(whyFailed_,other.whyFailed_); }
boost::shared_ptr<cms::Exception> edm::OutputHandle::whyFailed | ( | ) | const [inline] |
void const* edm::OutputHandle::wrapper | ( | ) | const [inline] |
Definition at line 89 of file OutputHandle.h.
References product_, and edm::WrapperHolder::wrapper().
Referenced by edm::RootOutputFile::fillBranches(), and edm::StreamSerializer::serializeEvent().
{ return product_.wrapper(); }
ConstBranchDescription const* edm::OutputHandle::desc_ [private] |
Definition at line 111 of file OutputHandle.h.
WrapperHolder edm::OutputHandle::product_ [private] |
Definition at line 112 of file OutputHandle.h.
Referenced by isValid(), productProvenance(), and swap().
boost::shared_ptr<cms::Exception> edm::OutputHandle::whyFailed_ [private] |
Definition at line 113 of file OutputHandle.h.
Referenced by failedToGet(), swap(), and whyFailed().