Public Member Functions | Protected Member Functions | Private Member Functions | List of all members
art::EDProduct Class Referenceabstract

#include "/cvmfs/nova.opensciencegrid.org/externals/canvas/v3_06_01/source/canvas/Persistency/Common/EDProduct.h"

Inheritance diagram for art::EDProduct:
art::Wrapper< T >

Public Member Functions

virtual ~EDProduct ()=default
 
bool isPresent () const
 
virtual void fillView (std::vector< void const * > &) const
 
virtual std::type_info const * typeInfo () const
 
void setPtr (std::type_info const &toType, unsigned long index, void const *&ptr) const
 
void getElementAddresses (std::type_info const &toType, std::vector< unsigned long > const &indices, std::vector< void const * > &ptr) const
 
virtual std::string productSize () const
 
std::unique_ptr< EDProductmakePartner (std::type_info const &wanted_type) const
 
unsigned getRangeSetID () const
 
void setRangeSetID (unsigned const id)
 
void combine (EDProduct *p)
 
std::unique_ptr< EDProductcreateEmptySampledProduct (InputTag const &tag) const
 
void insertIfSampledProduct (std::string const &dataset, SubRunID const &id, std::unique_ptr< EDProduct > product)
 

Protected Member Functions

virtual std::unique_ptr< EDProductdo_makePartner (std::type_info const &wanted_type) const =0
 
virtual void do_combine (EDProduct *)=0
 
virtual void do_setRangeSetID (unsigned)=0
 
virtual unsigned do_getRangeSetID () const =0
 
virtual void do_setPtr (std::type_info const &toType, unsigned long index, void const *&ptr) const =0
 
virtual void do_getElementAddresses (std::type_info const &toType, std::vector< unsigned long > const &indices, std::vector< void const * > &ptr) const =0
 
virtual std::unique_ptr< EDProductdo_createEmptySampledProduct (InputTag const &tag) const =0
 
virtual void do_insertIfSampledProduct (std::string const &dataset, SubRunID const &id, std::unique_ptr< EDProduct > product)=0
 

Private Member Functions

virtual bool isPresent_ () const =0
 
virtual std::type_info const * typeInfo_ () const =0
 

Detailed Description

Definition at line 25 of file EDProduct.h.

Constructor & Destructor Documentation

virtual art::EDProduct::~EDProduct ( )
virtualdefault

Member Function Documentation

void art::EDProduct::combine ( EDProduct p)
inline

Definition at line 81 of file EDProduct.h.

References do_combine().

82  {
83  do_combine(p);
84  }
const char * p
Definition: xmltok.h:285
virtual void do_combine(EDProduct *)=0
std::unique_ptr<EDProduct> art::EDProduct::createEmptySampledProduct ( InputTag const &  tag) const
inline

Definition at line 87 of file EDProduct.h.

References do_createEmptySampledProduct().

88  {
90  }
virtual std::unique_ptr< EDProduct > do_createEmptySampledProduct(InputTag const &tag) const =0
virtual void art::EDProduct::do_combine ( EDProduct )
protectedpure virtual

Implemented in art::Wrapper< T >.

Referenced by combine(), and insertIfSampledProduct().

virtual std::unique_ptr<EDProduct> art::EDProduct::do_createEmptySampledProduct ( InputTag const &  tag) const
protectedpure virtual
virtual void art::EDProduct::do_getElementAddresses ( std::type_info const &  toType,
std::vector< unsigned long > const &  indices,
std::vector< void const * > &  ptr 
) const
protectedpure virtual

Implemented in art::Wrapper< T >.

Referenced by insertIfSampledProduct().

virtual unsigned art::EDProduct::do_getRangeSetID ( ) const
protectedpure virtual

Implemented in art::Wrapper< T >.

Referenced by getRangeSetID(), and insertIfSampledProduct().

virtual void art::EDProduct::do_insertIfSampledProduct ( std::string const &  dataset,
SubRunID const &  id,
std::unique_ptr< EDProduct product 
)
protectedpure virtual

Implemented in art::Wrapper< T >.

Referenced by insertIfSampledProduct().

virtual std::unique_ptr<EDProduct> art::EDProduct::do_makePartner ( std::type_info const &  wanted_type) const
protectedpure virtual

Implemented in art::Wrapper< T >.

Referenced by insertIfSampledProduct(), and makePartner().

virtual void art::EDProduct::do_setPtr ( std::type_info const &  toType,
unsigned long  index,
void const *&  ptr 
) const
protectedpure virtual

Implemented in art::Wrapper< T >.

Referenced by insertIfSampledProduct().

virtual void art::EDProduct::do_setRangeSetID ( unsigned  )
protectedpure virtual

Implemented in art::Wrapper< T >.

Referenced by insertIfSampledProduct(), and setRangeSetID().

virtual void art::EDProduct::fillView ( std::vector< void const * > &  ) const
inlinevirtual

Reimplemented in art::Wrapper< T >.

Definition at line 38 of file EDProduct.h.

Referenced by art::View< T >::fill().

39  { /* should be called only polymorphically */
40  }
void art::EDProduct::getElementAddresses ( std::type_info const &  toType,
std::vector< unsigned long > const &  indices,
std::vector< void const * > &  ptr 
) const
unsigned art::EDProduct::getRangeSetID ( ) const
inline

Definition at line 69 of file EDProduct.h.

References do_getRangeSetID().

70  {
71  return do_getRangeSetID();
72  }
virtual unsigned do_getRangeSetID() const =0
void art::EDProduct::insertIfSampledProduct ( std::string const &  dataset,
SubRunID const &  id,
std::unique_ptr< EDProduct product 
)
inline

Definition at line 93 of file EDProduct.h.

References make_training::dataset, do_combine(), do_createEmptySampledProduct(), do_getElementAddresses(), do_getRangeSetID(), do_insertIfSampledProduct(), do_makePartner(), do_setPtr(), do_setRangeSetID(), isPresent_(), stan::io::product(), string, getGoodRuns4SAM::tag, and typeInfo_().

96  {
97  return do_insertIfSampledProduct(dataset, id, move(product));
98  }
virtual void do_insertIfSampledProduct(std::string const &dataset, SubRunID const &id, std::unique_ptr< EDProduct > product)=0
T product(std::vector< T > dims)
bool art::EDProduct::isPresent ( ) const
inline

Definition at line 30 of file EDProduct.h.

References isPresent_().

Referenced by art::Wrapper< T >::do_combine(), and art::FileDumperOutput::printPrincipal().

31  {
32  return isPresent_();
33  }
virtual bool isPresent_() const =0
virtual bool art::EDProduct::isPresent_ ( ) const
privatepure virtual

Implemented in art::Wrapper< T >.

Referenced by insertIfSampledProduct(), and isPresent().

std::unique_ptr<EDProduct> art::EDProduct::makePartner ( std::type_info const &  wanted_type) const
inline

Definition at line 63 of file EDProduct.h.

References do_makePartner().

Referenced by art::AssnsGroup::makePartner().

64  {
65  return do_makePartner(wanted_type);
66  }
virtual std::unique_ptr< EDProduct > do_makePartner(std::type_info const &wanted_type) const =0
virtual std::string art::EDProduct::productSize ( ) const
inlinevirtual

Reimplemented in art::Wrapper< T >.

Definition at line 57 of file EDProduct.h.

58  {
59  return "-";
60  }
void art::EDProduct::setPtr ( std::type_info const &  toType,
unsigned long  index,
void const *&  ptr 
) const
void art::EDProduct::setRangeSetID ( unsigned const  id)
inline

Definition at line 75 of file EDProduct.h.

References do_setRangeSetID().

76  {
77  do_setRangeSetID(id);
78  }
virtual void do_setRangeSetID(unsigned)=0
virtual std::type_info const* art::EDProduct::typeInfo ( ) const
inlinevirtual

Definition at line 43 of file EDProduct.h.

References getElementAddresses(), allTimeWatchdog::index, setPtr(), string, and typeInfo_().

44  {
45  return typeInfo_();
46  }
virtual std::type_info const * typeInfo_() const =0
virtual std::type_info const* art::EDProduct::typeInfo_ ( ) const
privatepure virtual

Implemented in art::Wrapper< T >.

Referenced by insertIfSampledProduct(), and typeInfo().


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