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

#include <OutputHandle.h>

Public Member Functions

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

Static Public Member Functions

static OutputHandle invalid ()
 

Private Attributes

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

Detailed Description

Definition at line 34 of file OutputHandle.h.

Constructor & Destructor Documentation

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

Definition at line 12 of file OutputHandle.cc.

17  : desc_{desc}
18  , productProvenance_{productProvenance}
19  , wrap_{prod}
21  {}
RangeSet const & rangeOfValidity_
Definition: OutputHandle.h:69
BranchDescription const * desc_
Definition: OutputHandle.h:66
EDProduct const * wrap_
Definition: OutputHandle.h:68
cet::exempt_ptr< ProductProvenance const > productProvenance_
Definition: OutputHandle.h:67
BranchDescription const * desc() const
Definition: OutputHandle.cc:38
art::OutputHandle::OutputHandle ( RangeSet const &  rs)

Used when the attempt to get the data failed.

Definition at line 24 of file OutputHandle.cc.

25  : desc_{nullptr}
26  , productProvenance_{nullptr}
27  , wrap_{nullptr}
29  {}
RangeSet const & rangeOfValidity_
Definition: OutputHandle.h:69
BranchDescription const * desc_
Definition: OutputHandle.h:66
EDProduct const * wrap_
Definition: OutputHandle.h:68
cet::exempt_ptr< ProductProvenance const > productProvenance_
Definition: OutputHandle.h:67
art::OutputHandle::OutputHandle ( OutputHandle const &  )
delete
art::OutputHandle::OutputHandle ( OutputHandle &&  )
default

Member Function Documentation

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

Definition at line 38 of file OutputHandle.cc.

39  {
40  return desc_;
41  }
BranchDescription const * desc_
Definition: OutputHandle.h:66
static OutputHandle art::OutputHandle::invalid ( )
inlinestatic

Definition at line 44 of file OutputHandle.h.

45  {
47  }
OutputHandle(EDProduct const *, BranchDescription const *, cet::exempt_ptr< ProductProvenance const >, RangeSet const &)
Definition: OutputHandle.cc:12
static RangeSet invalid()
Definition: RangeSet.cc:45
bool art::OutputHandle::isValid ( ) const

Definition at line 32 of file OutputHandle.cc.

33  {
34  return desc_ && productProvenance_ && wrap_;
35  }
BranchDescription const * desc_
Definition: OutputHandle.h:66
EDProduct const * wrap_
Definition: OutputHandle.h:68
cet::exempt_ptr< ProductProvenance const > productProvenance_
Definition: OutputHandle.h:67
OutputHandle& art::OutputHandle::operator= ( OutputHandle const &  )
delete
OutputHandle& art::OutputHandle::operator= ( OutputHandle &&  )
delete
ProductProvenance const * art::OutputHandle::productProvenance ( ) const

Definition at line 44 of file OutputHandle.cc.

45  {
46  return productProvenance_.get();
47  }
cet::exempt_ptr< ProductProvenance const > productProvenance_
Definition: OutputHandle.h:67
RangeSet const & art::OutputHandle::rangeOfValidity ( ) const

Definition at line 56 of file OutputHandle.cc.

57  {
58  return rangeOfValidity_;
59  }
RangeSet const & rangeOfValidity_
Definition: OutputHandle.h:69
void art::OutputHandle::swap ( OutputHandle other)

Definition at line 62 of file OutputHandle.cc.

63  {
64  using std::swap;
65  swap(wrap_, other.wrap_);
66  swap(desc_, other.desc_);
67  swap(productProvenance_, other.productProvenance_);
68  }
BranchDescription const * desc_
Definition: OutputHandle.h:66
void swap(OutputHandle &)
Definition: OutputHandle.cc:62
EDProduct const * wrap_
Definition: OutputHandle.h:68
cet::exempt_ptr< ProductProvenance const > productProvenance_
Definition: OutputHandle.h:67
void swap(OutputHandle &a, OutputHandle &b)
Definition: OutputHandle.cc:71
EDProduct const * art::OutputHandle::wrapper ( ) const

Definition at line 50 of file OutputHandle.cc.

51  {
52  return wrap_;
53  }
EDProduct const * wrap_
Definition: OutputHandle.h:68

Member Data Documentation

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

Definition at line 66 of file OutputHandle.h.

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

Definition at line 67 of file OutputHandle.h.

RangeSet const& art::OutputHandle::rangeOfValidity_
private

Definition at line 69 of file OutputHandle.h.

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

Definition at line 68 of file OutputHandle.h.


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