CMS 3D CMS Logo

Public Member Functions | Private Attributes

edm::OutputHandle Class Reference

#include <OutputHandle.h>

List of all members.

Public Member Functions

ConstBranchDescription const * desc () const
bool failedToGet () const
bool isValid () const
OutputHandleoperator= (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::ExceptionwhyFailed () const
void const * wrapper () const
 ~OutputHandle ()

Private Attributes

ConstBranchDescription const * desc_
WrapperHolder product_
ProductProvenanceproductProvenance_
boost::shared_ptr< cms::ExceptionwhyFailed_

Detailed Description

Definition at line 39 of file OutputHandle.h.


Constructor & Destructor Documentation

edm::OutputHandle::OutputHandle ( ) [inline]

Definition at line 41 of file OutputHandle.h.

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]
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.

{}

Member Function Documentation

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]

Definition at line 93 of file OutputHandle.h.

References product_.

                                  {
      return product_;
    }
ProductProvenance const* edm::OutputHandle::productProvenance ( ) const [inline]
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]

Definition at line 97 of file OutputHandle.h.

References whyFailed_.

                                                    {
      return whyFailed_;
    }
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();
    }

Member Data Documentation

Definition at line 111 of file OutputHandle.h.

Referenced by desc(), isValid(), and swap().

Definition at line 110 of file OutputHandle.h.

Referenced by isValid(), product(), swap(), and wrapper().

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().