CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Member Functions | Private Attributes
edm::OutputHandle Class Reference

#include <OutputHandle.h>

Public Member Functions

BranchDescription const * desc () const
 
bool failedToGet () const
 
bool isValid () const
 
OutputHandleoperator= (OutputHandle const &rhs)
 
 OutputHandle ()
 
 OutputHandle (OutputHandle const &h)
 
 OutputHandle (WrapperHolder const &product, BranchDescription const *desc, ProductProvenance *productProvenance)
 
 OutputHandle (boost::shared_ptr< cms::Exception > const &iWhyFailed)
 Used when the attempt to get the data failed. More...
 
WrapperHolder product () const
 
ProductProvenance const * productProvenance () const
 
void swap (OutputHandle &other)
 
boost::shared_ptr< cms::ExceptionwhyFailed () const
 
void const * wrapper () const
 
 ~OutputHandle ()
 

Private Attributes

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

41  :
42  product_(),
43  desc_(0),
44  productProvenance_(0) {}
BranchDescription const * desc_
Definition: OutputHandle.h:111
WrapperHolder product_
Definition: OutputHandle.h:110
ProductProvenance * productProvenance_
Definition: OutputHandle.h:112
edm::OutputHandle::OutputHandle ( OutputHandle const &  h)
inline

Definition at line 46 of file OutputHandle.h.

46  :
47  product_(h.product_),
48  desc_(h.desc_),
49  productProvenance_(h.productProvenance_),
50  whyFailed_(h.whyFailed_){}
BranchDescription const * desc_
Definition: OutputHandle.h:111
WrapperHolder product_
Definition: OutputHandle.h:110
ProductProvenance * productProvenance_
Definition: OutputHandle.h:112
The Signals That Services Can Subscribe To This is based on ActivityRegistry h
Helper function to determine trigger accepts.
Definition: Activities.doc:4
boost::shared_ptr< cms::Exception > whyFailed_
Definition: OutputHandle.h:113
edm::OutputHandle::OutputHandle ( WrapperHolder const &  product,
BranchDescription const *  desc,
ProductProvenance productProvenance 
)
inline

Definition at line 52 of file OutputHandle.h.

52  :
54  desc_(desc),
ProductProvenance const * productProvenance() const
Definition: OutputHandle.h:101
WrapperHolder product() const
Definition: OutputHandle.h:93
BranchDescription const * desc_
Definition: OutputHandle.h:111
WrapperHolder product_
Definition: OutputHandle.h:110
ProductProvenance * productProvenance_
Definition: OutputHandle.h:112
BranchDescription const * desc() const
Definition: OutputHandle.h:105
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.

58  :
59  product_(),
60  desc_(0),
62  whyFailed_(iWhyFailed) {}
BranchDescription const * desc_
Definition: OutputHandle.h:111
WrapperHolder product_
Definition: OutputHandle.h:110
ProductProvenance * productProvenance_
Definition: OutputHandle.h:112
boost::shared_ptr< cms::Exception > whyFailed_
Definition: OutputHandle.h:113
edm::OutputHandle::~OutputHandle ( )
inline

Definition at line 64 of file OutputHandle.h.

64 {}

Member Function Documentation

BranchDescription const* edm::OutputHandle::desc ( ) const
inline

Definition at line 105 of file OutputHandle.h.

References desc_.

Referenced by edm::check().

105  {
106  return desc_;
107  }
BranchDescription const * desc_
Definition: OutputHandle.h:111
bool edm::OutputHandle::failedToGet ( ) const
inline

Definition at line 85 of file OutputHandle.h.

References whyFailed_.

85  {
86  return 0 != whyFailed_.get();
87  }
boost::shared_ptr< cms::Exception > whyFailed_
Definition: OutputHandle.h:113
bool edm::OutputHandle::isValid ( void  ) const
inline

Definition at line 81 of file OutputHandle.h.

References desc_, edm::WrapperHolder::isValid(), product_, and productProvenance_.

81  {
83  }
BranchDescription const * desc_
Definition: OutputHandle.h:111
WrapperHolder product_
Definition: OutputHandle.h:110
ProductProvenance * productProvenance_
Definition: OutputHandle.h:112
bool isValid() const
Definition: WrapperHolder.h:27
OutputHandle& edm::OutputHandle::operator= ( OutputHandle const &  rhs)
inline

Definition at line 75 of file OutputHandle.h.

References swap(), and groupFilesInBlocks::temp.

75  {
76  OutputHandle temp(rhs);
77  this->swap(temp);
78  return *this;
79  }
void swap(OutputHandle &other)
Definition: OutputHandle.h:66
WrapperHolder edm::OutputHandle::product ( ) const
inline

Definition at line 93 of file OutputHandle.h.

References product_.

93  {
94  return product_;
95  }
WrapperHolder product_
Definition: OutputHandle.h:110
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().

101  {
102  return productProvenance_;
103  }
ProductProvenance * productProvenance_
Definition: OutputHandle.h:112
void edm::OutputHandle::swap ( OutputHandle other)
inline

Definition at line 66 of file OutputHandle.h.

References desc_, product_, productProvenance_, std::swap(), and whyFailed_.

Referenced by operator=(), and edm::swap().

66  {
67  using std::swap;
68  std::swap(product_, other.product_);
69  std::swap(desc_, other.desc_);
70  std::swap(productProvenance_, other.productProvenance_);
71  swap(whyFailed_,other.whyFailed_);
72  }
BranchDescription const * desc_
Definition: OutputHandle.h:111
void swap(edm::DataFrameContainer &lhs, edm::DataFrameContainer &rhs)
WrapperHolder product_
Definition: OutputHandle.h:110
ProductProvenance * productProvenance_
Definition: OutputHandle.h:112
void swap(OutputHandle &other)
Definition: OutputHandle.h:66
boost::shared_ptr< cms::Exception > whyFailed_
Definition: OutputHandle.h:113
boost::shared_ptr<cms::Exception> edm::OutputHandle::whyFailed ( ) const
inline

Definition at line 97 of file OutputHandle.h.

References whyFailed_.

97  {
98  return whyFailed_;
99  }
boost::shared_ptr< cms::Exception > whyFailed_
Definition: OutputHandle.h:113
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().

89  {
90  return product_.wrapper();
91  }
WrapperHolder product_
Definition: OutputHandle.h:110
void const * wrapper() const
Definition: WrapperHolder.h:76

Member Data Documentation

BranchDescription const* edm::OutputHandle::desc_
private

Definition at line 111 of file OutputHandle.h.

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

WrapperHolder edm::OutputHandle::product_
private

Definition at line 110 of file OutputHandle.h.

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

ProductProvenance* edm::OutputHandle::productProvenance_
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().