Public Member Functions | Static Public Member Functions | Private Attributes | List of all members
art::OutputHandle Class Reference

#include "/cvmfs/nova.opensciencegrid.org/externals/art/v2_13_00/source/art/Framework/Principal/OutputHandle.h"

Public Member Functions

 OutputHandle (EDProduct const *prod, BranchDescription const *desc, cet::exempt_ptr< ProductProvenance const > productProvenance, RangeSet const &rs)
 
 OutputHandle (RangeSet const &rs)
 Used when the attempt to get the data failed. More...
 
void swap (OutputHandle &other)
 
bool isValid () const
 
RangeSet const & rangeOfValidity () const
 
EDProduct const * wrapper () const
 
ProductProvenance const * productProvenance () const
 
BranchDescription const * desc () const
 

Static Public Member Functions

static OutputHandle invalid ()
 

Private Attributes

EDProduct const * wrap_ {nullptr}
 
BranchDescription const * desc_ {nullptr}
 
cet::exempt_ptr< ProductProvenance const > productProvenance_ {nullptr}
 
RangeSet const & rangeOfValidity_
 

Detailed Description

Definition at line 39 of file OutputHandle.h.

Constructor & Destructor Documentation

art::OutputHandle::OutputHandle ( EDProduct const *  prod,
BranchDescription const *  desc,
cet::exempt_ptr< ProductProvenance const >  productProvenance,
RangeSet const &  rs 
)
inline

Definition at line 41 of file OutputHandle.h.

References desc(), desc_, productProvenance(), productProvenance_, and rangeOfValidity_.

45  : wrap_{prod}
46  , desc_{desc}
47  , productProvenance_{productProvenance}
48  , rangeOfValidity_{rs}
49  {}
BranchDescription const * desc() const
Definition: OutputHandle.h:96
T prod(const std::vector< T > &v)
Definition: prod.hpp:17
RangeSet const & rangeOfValidity_
Definition: OutputHandle.h:105
BranchDescription const * desc_
Definition: OutputHandle.h:103
EDProduct const * wrap_
Definition: OutputHandle.h:102
cet::exempt_ptr< ProductProvenance const > productProvenance_
Definition: OutputHandle.h:104
art::OutputHandle::OutputHandle ( RangeSet const &  rs)
inline

Used when the attempt to get the data failed.

Definition at line 58 of file OutputHandle.h.

58 : rangeOfValidity_{rs} {}
RangeSet const & rangeOfValidity_
Definition: OutputHandle.h:105

Member Function Documentation

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

Definition at line 96 of file OutputHandle.h.

References desc_.

Referenced by OutputHandle().

97  {
98  return desc_;
99  }
BranchDescription const * desc_
Definition: OutputHandle.h:103
static OutputHandle art::OutputHandle::invalid ( )
inlinestatic

Definition at line 52 of file OutputHandle.h.

References art::RangeSet::invalid().

53  {
55  }
static RangeSet invalid()
OutputHandle(EDProduct const *prod, BranchDescription const *desc, cet::exempt_ptr< ProductProvenance const > productProvenance, RangeSet const &rs)
Definition: OutputHandle.h:41
bool art::OutputHandle::isValid ( ) const
inline

Definition at line 72 of file OutputHandle.h.

References desc_, productProvenance_, and wrap_.

73  {
74  return wrap_ && desc_ && productProvenance_;
75  }
BranchDescription const * desc_
Definition: OutputHandle.h:103
EDProduct const * wrap_
Definition: OutputHandle.h:102
cet::exempt_ptr< ProductProvenance const > productProvenance_
Definition: OutputHandle.h:104
ProductProvenance const* art::OutputHandle::productProvenance ( ) const
inline

Definition at line 90 of file OutputHandle.h.

References productProvenance_.

Referenced by OutputHandle().

91  {
92  return productProvenance_.get();
93  }
cet::exempt_ptr< ProductProvenance const > productProvenance_
Definition: OutputHandle.h:104
RangeSet const& art::OutputHandle::rangeOfValidity ( ) const
inline

Definition at line 78 of file OutputHandle.h.

References rangeOfValidity_.

79  {
80  return rangeOfValidity_;
81  }
RangeSet const & rangeOfValidity_
Definition: OutputHandle.h:105
void art::OutputHandle::swap ( OutputHandle other)
inline

Definition at line 63 of file OutputHandle.h.

References desc_, productProvenance_, std::swap(), and wrap_.

Referenced by art::swap().

64  {
65  using std::swap;
66  swap(wrap_, other.wrap_);
67  swap(desc_, other.desc_);
68  swap(productProvenance_, other.productProvenance_);
69  }
void swap(art::HLTGlobalStatus &lhs, art::HLTGlobalStatus &rhs)
void swap(OutputHandle &other)
Definition: OutputHandle.h:63
BranchDescription const * desc_
Definition: OutputHandle.h:103
EDProduct const * wrap_
Definition: OutputHandle.h:102
cet::exempt_ptr< ProductProvenance const > productProvenance_
Definition: OutputHandle.h:104
EDProduct const* art::OutputHandle::wrapper ( ) const
inline

Definition at line 84 of file OutputHandle.h.

References wrap_.

85  {
86  return wrap_;
87  }
EDProduct const * wrap_
Definition: OutputHandle.h:102

Member Data Documentation

BranchDescription const* art::OutputHandle::desc_ {nullptr}
private

Definition at line 103 of file OutputHandle.h.

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

cet::exempt_ptr<ProductProvenance const> art::OutputHandle::productProvenance_ {nullptr}
private

Definition at line 104 of file OutputHandle.h.

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

RangeSet const& art::OutputHandle::rangeOfValidity_
private

Definition at line 105 of file OutputHandle.h.

Referenced by OutputHandle(), and rangeOfValidity().

EDProduct const* art::OutputHandle::wrap_ {nullptr}
private

Definition at line 102 of file OutputHandle.h.

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


The documentation for this class was generated from the following file: