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 (WrapperBase const *product, BranchDescription const *desc, ProductProvenance *productProvenance)
 
 OutputHandle (std::shared_ptr< cms::Exception > const &iWhyFailed)
 Used when the attempt to get the data failed. More...
 
ProductProvenance const * productProvenance () const
 
void swap (OutputHandle &other)
 
std::shared_ptr< cms::ExceptionwhyFailed () const
 
WrapperBase const * wrapper () const
 
 ~OutputHandle ()
 

Private Attributes

BranchDescription const * desc_
 
WrapperBase const * product_
 
ProductProvenanceproductProvenance_
 
std::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_(nullptr),
43  desc_(nullptr),
44  productProvenance_(0) {}
BranchDescription const * desc_
Definition: OutputHandle.h:107
WrapperBase const * product_
Definition: OutputHandle.h:106
ProductProvenance * productProvenance_
Definition: OutputHandle.h:108
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_){}
std::shared_ptr< cms::Exception > whyFailed_
Definition: OutputHandle.h:109
BranchDescription const * desc_
Definition: OutputHandle.h:107
WrapperBase const * product_
Definition: OutputHandle.h:106
The Signals That Services Can Subscribe To This is based on ActivityRegistry h
Helper function to determine trigger accepts.
Definition: Activities.doc:4
ProductProvenance * productProvenance_
Definition: OutputHandle.h:108
edm::OutputHandle::OutputHandle ( WrapperBase const *  product,
BranchDescription const *  desc,
ProductProvenance productProvenance 
)
inline

Definition at line 52 of file OutputHandle.h.

52  :
53  product_(product),
54  desc_(desc),
ProductProvenance const * productProvenance() const
Definition: OutputHandle.h:97
BranchDescription const * desc_
Definition: OutputHandle.h:107
WrapperBase const * product_
Definition: OutputHandle.h:106
ProductProvenance * productProvenance_
Definition: OutputHandle.h:108
BranchDescription const * desc() const
Definition: OutputHandle.h:101
edm::OutputHandle::OutputHandle ( std::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_(nullptr),
60  desc_(nullptr),
61  productProvenance_(nullptr),
62  whyFailed_(iWhyFailed) {}
std::shared_ptr< cms::Exception > whyFailed_
Definition: OutputHandle.h:109
BranchDescription const * desc_
Definition: OutputHandle.h:107
WrapperBase const * product_
Definition: OutputHandle.h:106
ProductProvenance * productProvenance_
Definition: OutputHandle.h:108
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 101 of file OutputHandle.h.

References desc_.

Referenced by edm::check().

101  {
102  return desc_;
103  }
BranchDescription const * desc_
Definition: OutputHandle.h:107
bool edm::OutputHandle::failedToGet ( ) const
inline

Definition at line 85 of file OutputHandle.h.

References whyFailed_.

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

Definition at line 81 of file OutputHandle.h.

References desc_, product_, and productProvenance_.

Referenced by core.AutoHandle.AutoHandle::ReallyLoad().

81  {
82  return product_ && desc_ &&productProvenance_;
83  }
BranchDescription const * desc_
Definition: OutputHandle.h:107
WrapperBase const * product_
Definition: OutputHandle.h:106
ProductProvenance * productProvenance_
Definition: OutputHandle.h:108
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
ProductProvenance const* edm::OutputHandle::productProvenance ( ) const
inline

Definition at line 97 of file OutputHandle.h.

References productProvenance_.

Referenced by edm::RootOutputFile::fillBranches(), and edm::StreamSerializer::serializeEvent().

97  {
98  return productProvenance_;
99  }
ProductProvenance * productProvenance_
Definition: OutputHandle.h:108
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  }
std::shared_ptr< cms::Exception > whyFailed_
Definition: OutputHandle.h:109
BranchDescription const * desc_
Definition: OutputHandle.h:107
void swap(edm::DataFrameContainer &lhs, edm::DataFrameContainer &rhs)
WrapperBase const * product_
Definition: OutputHandle.h:106
ProductProvenance * productProvenance_
Definition: OutputHandle.h:108
void swap(OutputHandle &other)
Definition: OutputHandle.h:66
std::shared_ptr<cms::Exception> edm::OutputHandle::whyFailed ( ) const
inline

Definition at line 93 of file OutputHandle.h.

References whyFailed_.

93  {
94  return whyFailed_;
95  }
std::shared_ptr< cms::Exception > whyFailed_
Definition: OutputHandle.h:109
WrapperBase const* edm::OutputHandle::wrapper ( ) const
inline

Definition at line 89 of file OutputHandle.h.

References product_.

Referenced by edm::RootOutputFile::fillBranches(), and edm::StreamSerializer::serializeEvent().

89  {
90  return product_;
91  }
WrapperBase const * product_
Definition: OutputHandle.h:106

Member Data Documentation

BranchDescription const* edm::OutputHandle::desc_
private

Definition at line 107 of file OutputHandle.h.

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

WrapperBase const* edm::OutputHandle::product_
private

Definition at line 106 of file OutputHandle.h.

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

ProductProvenance* edm::OutputHandle::productProvenance_
private

Definition at line 108 of file OutputHandle.h.

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

std::shared_ptr<cms::Exception> edm::OutputHandle::whyFailed_
private

Definition at line 109 of file OutputHandle.h.

Referenced by failedToGet(), swap(), and whyFailed().