LArSoft  v09_90_00
Liquid Argon Software toolkit - https://larsoft.org/
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.

References productProvenance(), productProvenance_, rangeOfValidity_, and wrap_.

Referenced by invalid().

17  : desc_{desc}
19  , wrap_{prod}
20  , rangeOfValidity_{rs}
21  {}
ProductProvenance const * productProvenance() const
Definition: OutputHandle.cc:44
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.

References productProvenance_, rangeOfValidity_, and wrap_.

25  : desc_{nullptr}
26  , productProvenance_{nullptr}
27  , wrap_{nullptr}
28  , rangeOfValidity_{rs}
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.

References desc_.

Referenced by invalid().

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.

References desc(), art::RangeSet::invalid(), isValid(), operator=(), OutputHandle(), productProvenance(), rangeOfValidity(), swap(), and wrapper().

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

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.

References desc_, productProvenance_, and wrap_.

Referenced by invalid().

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

Referenced by invalid().

OutputHandle& art::OutputHandle::operator= ( OutputHandle &&  )
delete
ProductProvenance const * art::OutputHandle::productProvenance ( ) const

Definition at line 44 of file OutputHandle.cc.

References productProvenance_.

Referenced by art::Principal::getForOutput(), invalid(), and OutputHandle().

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.

References rangeOfValidity_.

Referenced by art::Principal::getForOutput(), and invalid().

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.

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

Referenced by invalid(), and art::swap().

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.

References wrap_.

Referenced by invalid().

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.

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

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

Definition at line 67 of file OutputHandle.h.

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

RangeSet const& art::OutputHandle::rangeOfValidity_
private

Definition at line 69 of file OutputHandle.h.

Referenced by OutputHandle(), and rangeOfValidity().

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

Definition at line 68 of file OutputHandle.h.

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


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