CMS 3D CMS Logo

List of all members | Public Member Functions | Static Public Member Functions | Private Attributes | Friends
edm::reftobase::IndirectHolder< T > Class Template Reference

#include <EDProductfwd.h>

Inheritance diagram for edm::reftobase::IndirectHolder< T >:
edm::reftobase::BaseHolder< T >

Public Member Functions

BaseHolder< T > * clone () const override
 
T const * getPtr () const override
 
std::unique_ptr< RefHolderBaseholder () const override
 
ProductID id () const override
 
 IndirectHolder ()
 
 IndirectHolder (std::shared_ptr< RefHolderBase > p)
 
template<typename U >
 IndirectHolder (std::unique_ptr< U > p)
 
 IndirectHolder (IndirectHolder const &other)
 
bool isAvailable () const override
 
bool isEqualTo (BaseHolder< T > const &rhs) const override
 
bool isTransient () const override
 
size_t key () const override
 
std::unique_ptr< BaseVectorHolder< T > > makeVectorHolder () const override
 
IndirectHolderoperator= (IndirectHolder const &rhs)
 
EDProductGetter const * productGetter () const override
 
void swap (IndirectHolder &other)
 
 ~IndirectHolder () override
 
- Public Member Functions inherited from edm::reftobase::BaseHolder< T >
 BaseHolder ()
 
void swap (BaseHolder &)
 
virtual ~BaseHolder ()
 

Static Public Member Functions

static short Class_Version ()
 
- Static Public Member Functions inherited from edm::reftobase::BaseHolder< T >
static short Class_Version ()
 

Private Attributes

RefHolderBasehelper_
 

Friends

class IndirectVectorHolder< T >
 
class RefToBase< T >
 

Additional Inherited Members

- Protected Member Functions inherited from edm::reftobase::BaseHolder< T >
 BaseHolder (BaseHolder const &other)
 
BaseHolderoperator= (BaseHolder const &rhs)
 

Detailed Description

template<typename T>
class edm::reftobase::IndirectHolder< T >

Definition at line 48 of file EDProductfwd.h.

Constructor & Destructor Documentation

◆ IndirectHolder() [1/4]

template<typename T>
edm::reftobase::IndirectHolder< T >::IndirectHolder ( )
inline

Definition at line 31 of file IndirectHolder.h.

31 : BaseHolder<T>(), helper_(nullptr) {}

◆ IndirectHolder() [2/4]

template<typename T >
edm::reftobase::IndirectHolder< T >::IndirectHolder ( std::shared_ptr< RefHolderBase p)
inline

Definition at line 68 of file IndirectHolder.h.

68 : BaseHolder<T>(), helper_(p->clone()) {}

◆ IndirectHolder() [3/4]

template<typename T>
template<typename U >
edm::reftobase::IndirectHolder< T >::IndirectHolder ( std::unique_ptr< U >  p)
inline

Definition at line 34 of file IndirectHolder.h.

◆ IndirectHolder() [4/4]

template<typename T >
edm::reftobase::IndirectHolder< T >::IndirectHolder ( IndirectHolder< T > const &  other)
inline

Definition at line 71 of file IndirectHolder.h.

72  : BaseHolder<T>(other), helper_(other.helper_->clone()) {}

◆ ~IndirectHolder()

template<typename T >
edm::reftobase::IndirectHolder< T >::~IndirectHolder ( )
override

Definition at line 88 of file IndirectHolder.h.

88  {
89  delete helper_;
90  }

Member Function Documentation

◆ Class_Version()

template<typename T>
static short edm::reftobase::IndirectHolder< T >::Class_Version ( )
inlinestatic

Definition at line 57 of file IndirectHolder.h.

59 :
60  friend class RefToBase<T>;
long double T

◆ clone()

template<typename T >
BaseHolder< T > * edm::reftobase::IndirectHolder< T >::clone ( void  ) const
overridevirtual

Implements edm::reftobase::BaseHolder< T >.

Definition at line 93 of file IndirectHolder.h.

93  {
94  return new IndirectHolder<T>(*this);
95  }

◆ getPtr()

template<typename T >
T const * edm::reftobase::IndirectHolder< T >::getPtr ( ) const
overridevirtual

Implements edm::reftobase::BaseHolder< T >.

Definition at line 98 of file IndirectHolder.h.

98  {
99  return helper_->template getPtr<T>();
100  }

◆ holder()

template<typename T >
std::unique_ptr< RefHolderBase > edm::reftobase::IndirectHolder< T >::holder ( ) const
overridevirtual

Implements edm::reftobase::BaseHolder< T >.

Definition at line 124 of file IndirectHolder.h.

124  {
125  return std::unique_ptr<RefHolderBase>(helper_->clone());
126  }
virtual RefHolderBase * clone() const =0

◆ id()

template<typename T >
ProductID edm::reftobase::IndirectHolder< T >::id ( ) const
overridevirtual

Implements edm::reftobase::BaseHolder< T >.

Definition at line 103 of file IndirectHolder.h.

References edm::ProductID::id().

103  {
104  return helper_->id();
105  }
virtual ProductID id() const =0

◆ isAvailable()

template<typename T>
bool edm::reftobase::IndirectHolder< T >::isAvailable ( ) const
inlineoverridevirtual

Checks if product collection is in memory or available in the Event. No type checking is done.

Implements edm::reftobase::BaseHolder< T >.

Definition at line 52 of file IndirectHolder.h.

References edm::reftobase::IndirectHolder< T >::helper_, and edm::reftobase::RefHolderBase::isAvailable().

52 { return helper_->isAvailable(); }
virtual bool isAvailable() const =0

◆ isEqualTo()

template<typename T >
bool edm::reftobase::IndirectHolder< T >::isEqualTo ( BaseHolder< T > const &  rhs) const
overridevirtual

Implements edm::reftobase::BaseHolder< T >.

Definition at line 118 of file IndirectHolder.h.

References runTheMatrix::const, and h.

118  {
119  IndirectHolder const* h = dynamic_cast<IndirectHolder const*>(&rhs);
120  return h && helper_->isEqualTo(*h->helper_);
121  }
virtual bool isEqualTo(RefHolderBase const &rhs) const =0
The Signals That Services Can Subscribe To This is based on ActivityRegistry h
Helper function to determine trigger accepts.
Definition: Activities.doc:4

◆ isTransient()

template<typename T>
bool edm::reftobase::IndirectHolder< T >::isTransient ( ) const
inlineoverridevirtual

◆ key()

template<typename T >
size_t edm::reftobase::IndirectHolder< T >::key ( ) const
overridevirtual

Implements edm::reftobase::BaseHolder< T >.

Definition at line 108 of file IndirectHolder.h.

108  {
109  return helper_->key();
110  }
virtual size_t key() const =0

◆ makeVectorHolder()

template<typename T >
std::unique_ptr< BaseVectorHolder< T > > edm::reftobase::IndirectHolder< T >::makeVectorHolder ( ) const
overridevirtual

Implements edm::reftobase::BaseHolder< T >.

Definition at line 143 of file IndirectHolder.h.

References AlCaHLTBitMon_ParallelJobs::p.

143  {
144  std::unique_ptr<RefVectorHolderBase> p = helper_->makeVectorHolder();
145  std::shared_ptr<RefVectorHolderBase> sp(p.release());
146  return std::unique_ptr<BaseVectorHolder<T> >(new IndirectVectorHolder<T>(sp));
147  }
virtual std::unique_ptr< RefVectorHolderBase > makeVectorHolder() const =0

◆ operator=()

template<typename T >
IndirectHolder< T > & edm::reftobase::IndirectHolder< T >::operator= ( IndirectHolder< T > const &  rhs)
inline

Definition at line 81 of file IndirectHolder.h.

References edm::reftobase::swap(), and groupFilesInBlocks::temp.

81  {
82  IndirectHolder temp(rhs);
83  swap(temp);
84  return *this;
85  }
void swap(IndirectHolder &other)

◆ productGetter()

template<typename T >
EDProductGetter const * edm::reftobase::IndirectHolder< T >::productGetter ( ) const
inlineoverridevirtual

Implements edm::reftobase::BaseHolder< T >.

Definition at line 113 of file IndirectHolder.h.

113  {
114  return helper_->productGetter();
115  }
virtual EDProductGetter const * productGetter() const =0

◆ swap()

template<typename T >
void edm::reftobase::IndirectHolder< T >::swap ( IndirectHolder< T > &  other)
inline

Definition at line 75 of file IndirectHolder.h.

References trackingPlots::other, edm::reftobase::BaseHolder< T >::swap(), and edm::reftobase::swap().

Referenced by edm::reftobase::swap().

75  {
77  std::swap(helper_, other.helper_);
78  }
void swap(BaseHolder &)
Definition: BaseHolder.h:99
void swap(IndirectHolder< T > &lhs, IndirectHolder< T > &rhs)

Friends And Related Function Documentation

◆ IndirectVectorHolder< T >

template<typename T>
friend class IndirectVectorHolder< T >
friend

Definition at line 61 of file IndirectHolder.h.

◆ RefToBase< T >

template<typename T>
friend class RefToBase< T >
friend

Definition at line 60 of file IndirectHolder.h.

Member Data Documentation

◆ helper_

template<typename T>
RefHolderBase* edm::reftobase::IndirectHolder< T >::helper_
private