LArSoft  v06_85_00
Liquid Argon Software toolkit - http://larsoft.org/
art::OutputHandle Class Reference

#include "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}
48  , rangeOfValidity_{rs}
49  {}
ProductProvenance const * productProvenance() const
Definition: OutputHandle.h:90
BranchDescription const * desc() const
Definition: OutputHandle.h:96
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().

Referenced by art::Principal::getForOutput().

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

Definition at line 72 of file OutputHandle.h.

References desc_, productProvenance_, and wrap_.

Referenced by art::RootOutputFile::getProduct().

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 art::RootOutputFile::fillBranches(), and 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_.

Referenced by art::Principal::getForOutput().

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_, art::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(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
void swap(OutputHandle &a, OutputHandle &b)
Definition: OutputHandle.h:110
EDProduct const* art::OutputHandle::wrapper ( ) const
inline

Definition at line 84 of file OutputHandle.h.

References wrap_.

Referenced by art::RootOutputFile::getProduct().

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: