Public Member Functions | Protected Member Functions | Private Attributes | Friends | List of all members
art::AssnsGroupWithData Class Reference

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

Inheritance diagram for art::AssnsGroupWithData:
art::AssnsGroup art::Group art::EDProductGetter

Public Member Functions

 AssnsGroupWithData ()=default
 
bool isReady () const override
 
EDProduct const * getIt () const override
 
EDProduct const * uniqueProduct () const override
 
bool productUnavailable () const
 
cet::exempt_ptr< ProductProvenance const > productProvenancePtr () const
 
BranchDescription const & productDescription () const
 
std::string const & moduleLabel () const
 
std::string const & productInstanceName () const
 
std::string const & processName () const
 
ProductStatus status () const
 
void setResolvers (BranchMapper const &bm, DelayedReader const &dr)
 
bool resolveProduct (TypeID const &) const override
 
void write (std::ostream &os) const
 
ProductID const & productID () const
 
TypeID const & producedWrapperType () const
 
RangeSet const & rangeOfValidity () const
 

Protected Member Functions

 AssnsGroupWithData (BranchDescription const &pd, ProductID const &pid, RangeSet &&rs, TypeID const &primary_wrapper_type, TypeID const &partner_wrapper_type, TypeID const &base_wrapper_type, TypeID const &partner_base_wrapper_type, std::unique_ptr< EDProduct > &&edp=nullptr, cet::exempt_ptr< Worker > productProducer=cet::exempt_ptr< Worker >())
 
 AssnsGroupWithData (BranchDescription const &pd, ProductID const &pid, RangeSet &&rs, std::unique_ptr< EDProduct > &&edp, TypeID const &primary_wrapper_type, TypeID const &partner_wrapper_type, TypeID const &base_wrapper_type, TypeID const &partner_base_wrapper_type)
 
 AssnsGroupWithData (BranchDescription const &pd, ProductID const &pid, RangeSet &&rs, cet::exempt_ptr< Worker > productProducer, TypeID const &primary_wrapper_type, TypeID const &partner_wrapper_type, TypeID const &base_wrapper_type, TypeID const &partner_base_wrapper_type)
 
EDProduct const * anyProduct () const override
 
EDProduct const * uniqueProduct (TypeID const &wanted_wrapper_type) const override
 
bool resolveProductIfAvailable (TypeID const &) const override
 
void removeCachedProduct () const override
 
TypeID const & partnerWrapperType () const
 
bool makePartner (TypeID const &wanted_wrapper_type, std::unique_ptr< EDProduct > &partner) const
 
std::unique_ptr< EDProductobtainDesiredProduct (TypeID const &) const
 
void setProduct (std::unique_ptr< EDProduct > &&prod) const
 
void throwResolveLogicError (TypeID const &wanted_wrapper_type) const
 

Private Attributes

TypeID baseWrapperType_
 
TypeID partnerBaseWrapperType_
 
std::unique_ptr< EDProductbaseProduct_
 
std::unique_ptr< EDProductpartnerBaseProduct_
 

Friends

template<typename... ARGS>
std::unique_ptr< Groupgfactory::detail::make_group (BranchDescription const &, ARGS &&...args)
 

Detailed Description

Definition at line 14 of file AssnsGroupWithData.h.

Constructor & Destructor Documentation

art::AssnsGroupWithData::AssnsGroupWithData ( )
default
art::AssnsGroupWithData::AssnsGroupWithData ( BranchDescription const &  pd,
ProductID const &  pid,
RangeSet &&  rs,
TypeID const &  primary_wrapper_type,
TypeID const &  partner_wrapper_type,
TypeID const &  base_wrapper_type,
TypeID const &  partner_base_wrapper_type,
std::unique_ptr< EDProduct > &&  edp = nullptr,
cet::exempt_ptr< Worker productProducer = cet::exempt_ptr<Worker>() 
)
inlineprotected

Definition at line 26 of file AssnsGroupWithData.h.

References baseProduct_, partnerBaseProduct_, and partnerBaseWrapperType_.

36  : AssnsGroup(pd,
37  pid,
38  std::move(rs),
39  primary_wrapper_type,
40  partner_wrapper_type,
41  std::move(edp),
42  productProducer)
43  , baseWrapperType_{base_wrapper_type}
44  , partnerBaseWrapperType_{partner_base_wrapper_type}
45  , baseProduct_{}
47  {}
std::unique_ptr< EDProduct > partnerBaseProduct_
std::unique_ptr< EDProduct > baseProduct_
AssnsGroup()=default
art::AssnsGroupWithData::AssnsGroupWithData ( BranchDescription const &  pd,
ProductID const &  pid,
RangeSet &&  rs,
std::unique_ptr< EDProduct > &&  edp,
TypeID const &  primary_wrapper_type,
TypeID const &  partner_wrapper_type,
TypeID const &  base_wrapper_type,
TypeID const &  partner_base_wrapper_type 
)
inlineprotected

Definition at line 49 of file AssnsGroupWithData.h.

57  : AssnsGroupWithData(pd,
58  pid,
59  std::move(rs),
60  primary_wrapper_type,
61  partner_wrapper_type,
62  base_wrapper_type,
63  partner_base_wrapper_type,
64  std::move(edp))
65  {}
art::AssnsGroupWithData::AssnsGroupWithData ( BranchDescription const &  pd,
ProductID const &  pid,
RangeSet &&  rs,
cet::exempt_ptr< Worker productProducer,
TypeID const &  primary_wrapper_type,
TypeID const &  partner_wrapper_type,
TypeID const &  base_wrapper_type,
TypeID const &  partner_base_wrapper_type 
)
inlineprotected

Definition at line 67 of file AssnsGroupWithData.h.

References anyProduct(), removeCachedProduct(), resolveProductIfAvailable(), and art::AssnsGroup::uniqueProduct().

75  : AssnsGroupWithData(pd,
76  pid,
77  std::move(rs),
78  primary_wrapper_type,
79  partner_wrapper_type,
80  base_wrapper_type,
81  partner_base_wrapper_type,
82  nullptr,
83  productProducer)
84  {}

Member Function Documentation

EDProduct const* art::AssnsGroupWithData::anyProduct ( ) const
overrideprotectedvirtual

Reimplemented from art::AssnsGroup.

Referenced by AssnsGroupWithData().

EDProduct const* art::AssnsGroup::getIt ( ) const
overridevirtualinherited
bool art::AssnsGroup::isReady ( ) const
inlineoverridevirtualinherited
bool art::AssnsGroup::makePartner ( TypeID const &  wanted_wrapper_type,
std::unique_ptr< EDProduct > &  partner 
) const
inlineprotectedinherited

Definition at line 103 of file AssnsGroup.h.

References art::EDProduct::makePartner(), fillBadChanDBTables::result, art::TypeID::typeInfo(), and art::Group::uniqueProduct().

105  {
106  bool result;
107  auto edp =
108  Group::uniqueProduct()->makePartner(wanted_wrapper_type.typeInfo());
109  if ((result = edp.get())) {
110  partner = std::move(edp);
111  }
112  return result;
113  }
std::unique_ptr< EDProduct > makePartner(std::type_info const &wanted_type) const
Definition: EDProduct.h:63
EDProduct const * uniqueProduct() const override
Definition: Group.h:103
std::string const& art::Group::moduleLabel ( ) const
inlineinherited

Definition at line 123 of file Group.h.

References art::Group::branchDescription_, and string.

124  {
125  return branchDescription_->moduleLabel();
126  }
cet::exempt_ptr< BranchDescription const > branchDescription_
Definition: Group.h:191
std::unique_ptr<EDProduct> art::Group::obtainDesiredProduct ( TypeID const &  ) const
protectedinherited
TypeID const& art::AssnsGroup::partnerWrapperType ( ) const
inlineprotectedinherited

Definition at line 97 of file AssnsGroup.h.

References art::AssnsGroup::partnerWrapperType_.

98  {
99  return partnerWrapperType_;
100  }
TypeID partnerWrapperType_
Definition: AssnsGroup.h:116
std::string const& art::Group::processName ( ) const
inlineinherited

Definition at line 135 of file Group.h.

References art::Group::branchDescription_, and art::Group::status().

136  {
137  return branchDescription_->processName();
138  }
cet::exempt_ptr< BranchDescription const > branchDescription_
Definition: Group.h:191
TypeID const& art::Group::producedWrapperType ( ) const
inlineinherited

Definition at line 162 of file Group.h.

References art::Group::removeCachedProduct(), and art::Group::wrapperType_.

Referenced by art::Group::getIt(), and art::detail::PrincipalProcessor< DETAIL >::operator()().

163  {
164  return wrapperType_;
165  }
TypeID wrapperType_
Definition: Group.h:187
BranchDescription const& art::Group::productDescription ( ) const
inlineinherited

Definition at line 117 of file Group.h.

References art::Group::branchDescription_, and string.

118  {
119  return *branchDescription_;
120  }
cet::exempt_ptr< BranchDescription const > branchDescription_
Definition: Group.h:191
ProductID const& art::Group::productID ( ) const
inlineinherited

Definition at line 156 of file Group.h.

References art::Group::pid_.

157  {
158  return pid_;
159  };
ProductID pid_
Definition: Group.h:192
std::string const& art::Group::productInstanceName ( ) const
inlineinherited

Definition at line 129 of file Group.h.

References art::Group::branchDescription_, and string.

130  {
131  return branchDescription_->productInstanceName();
132  }
cet::exempt_ptr< BranchDescription const > branchDescription_
Definition: Group.h:191
cet::exempt_ptr<ProductProvenance const> art::Group::productProvenancePtr ( ) const
inherited
bool art::Group::productUnavailable ( ) const
inherited

Referenced by art::Group::Group().

RangeSet const& art::Group::rangeOfValidity ( ) const
inlineinherited
void art::AssnsGroupWithData::removeCachedProduct ( ) const
overrideprotectedvirtual

Reimplemented from art::AssnsGroup.

Referenced by AssnsGroupWithData().

bool art::Group::resolveProduct ( TypeID const &  ) const
overridevirtualinherited
bool art::AssnsGroupWithData::resolveProductIfAvailable ( TypeID const &  ) const
overrideprotectedvirtual

Reimplemented from art::AssnsGroup.

Referenced by AssnsGroupWithData().

void art::Group::setProduct ( std::unique_ptr< EDProduct > &&  prod) const
protectedinherited
void art::Group::setResolvers ( BranchMapper const &  bm,
DelayedReader const &  dr 
)
inlineinherited

Definition at line 143 of file Group.h.

References art::Group::ppResolver_, art::Group::productResolver_, art::Group::resolveProduct(), art::Group::resolveProductIfAvailable(), and art::Group::write().

144  {
145  ppResolver_.reset(&bm);
146  productResolver_.reset(&dr);
147  }
cet::exempt_ptr< BranchMapper const > ppResolver_
Definition: Group.h:188
cet::exempt_ptr< DelayedReader const > productResolver_
Definition: Group.h:189
ProductStatus art::Group::status ( ) const
inherited

Referenced by art::Group::processName().

void art::Group::throwResolveLogicError ( TypeID const &  wanted_wrapper_type) const
protectedinherited
EDProduct const* art::AssnsGroup::uniqueProduct ( ) const
overridevirtualinherited
EDProduct const* art::AssnsGroupWithData::uniqueProduct ( TypeID const &  wanted_wrapper_type) const
overrideprotectedvirtual

Reimplemented from art::AssnsGroup.

void art::Group::write ( std::ostream &  os) const
inherited

Friends And Related Function Documentation

template<typename... ARGS>
std::unique_ptr<Group> gfactory::detail::make_group ( BranchDescription const &  ,
ARGS &&...  args 
)
friend

Member Data Documentation

std::unique_ptr<EDProduct> art::AssnsGroupWithData::baseProduct_
mutableprivate

Definition at line 100 of file AssnsGroupWithData.h.

Referenced by AssnsGroupWithData().

TypeID art::AssnsGroupWithData::baseWrapperType_
private

Definition at line 98 of file AssnsGroupWithData.h.

std::unique_ptr<EDProduct> art::AssnsGroupWithData::partnerBaseProduct_
mutableprivate

Definition at line 101 of file AssnsGroupWithData.h.

Referenced by AssnsGroupWithData().

TypeID art::AssnsGroupWithData::partnerBaseWrapperType_
private

Definition at line 99 of file AssnsGroupWithData.h.

Referenced by AssnsGroupWithData().


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