CMS 3D CMS Logo

List of all members | Public Member Functions | Protected Member Functions | Private Member Functions | Private Attributes
edm::global::impl::RunCacheHolder< T, C > Class Template Referenceabstract

#include <implementors.h>

Inheritance diagram for edm::global::impl::RunCacheHolder< T, C >:

Public Member Functions

RunCacheHolder< T, C > & operator= (RunCacheHolder< T, C > const &)=delete
 
 RunCacheHolder ()=default
 
 RunCacheHolder (RunCacheHolder< T, C > const &)=delete
 
 ~RunCacheHolder ()(false) override
 

Protected Member Functions

C const * runCache (edm::RunIndex iID) const
 

Private Member Functions

void doBeginRun_ (Run const &rp, EventSetup const &c) final
 
void doEndRun_ (Run const &rp, EventSetup const &c) final
 
virtual std::shared_ptr< C > globalBeginRun (edm::Run const &, edm::EventSetup const &) const =0
 
virtual void globalEndRun (edm::Run const &, edm::EventSetup const &) const =0
 

Private Attributes

edm::propagate_const< std::shared_ptr< C > > cache_
 

Detailed Description

template<typename T, typename C>
class edm::global::impl::RunCacheHolder< T, C >

Definition at line 90 of file implementors.h.

Constructor & Destructor Documentation

template<typename T , typename C >
edm::global::impl::RunCacheHolder< T, C >::RunCacheHolder ( )
default
template<typename T , typename C >
edm::global::impl::RunCacheHolder< T, C >::RunCacheHolder ( RunCacheHolder< T, C > const &  )
delete
template<typename T , typename C >
edm::global::impl::RunCacheHolder< T, C >::~RunCacheHolder ( )
inlineoverride

Definition at line 95 of file implementors.h.

95 {};

Member Function Documentation

template<typename T , typename C >
void edm::global::impl::RunCacheHolder< T, C >::doBeginRun_ ( Run const &  rp,
EventSetup const &  c 
)
inlinefinalprivate

Definition at line 101 of file implementors.h.

References EnergyCorrector::c.

101 { cache_ = globalBeginRun(rp, c); }
edm::propagate_const< std::shared_ptr< C > > cache_
Definition: implementors.h:110
virtual std::shared_ptr< C > globalBeginRun(edm::Run const &, edm::EventSetup const &) const =0
template<typename T , typename C >
void edm::global::impl::RunCacheHolder< T, C >::doEndRun_ ( Run const &  rp,
EventSetup const &  c 
)
inlinefinalprivate

Definition at line 102 of file implementors.h.

References EnergyCorrector::c.

102  {
103  globalEndRun(rp, c);
104  cache_ = nullptr; // propagate_const<T> has no reset() function
105  }
virtual void globalEndRun(edm::Run const &, edm::EventSetup const &) const =0
edm::propagate_const< std::shared_ptr< C > > cache_
Definition: implementors.h:110
template<typename T , typename C >
virtual std::shared_ptr<C> edm::global::impl::RunCacheHolder< T, C >::globalBeginRun ( edm::Run const &  ,
edm::EventSetup const &   
) const
privatepure virtual
template<typename T , typename C >
virtual void edm::global::impl::RunCacheHolder< T, C >::globalEndRun ( edm::Run const &  ,
edm::EventSetup const &   
) const
privatepure virtual
template<typename T , typename C >
RunCacheHolder<T, C>& edm::global::impl::RunCacheHolder< T, C >::operator= ( RunCacheHolder< T, C > const &  )
delete
template<typename T , typename C >
C const* edm::global::impl::RunCacheHolder< T, C >::runCache ( edm::RunIndex  iID) const
inlineprotected

Definition at line 98 of file implementors.h.

98 { return cache_.get(); }
edm::propagate_const< std::shared_ptr< C > > cache_
Definition: implementors.h:110
element_type const * get() const

Member Data Documentation

template<typename T , typename C >
edm::propagate_const<std::shared_ptr<C> > edm::global::impl::RunCacheHolder< T, C >::cache_
private

Definition at line 110 of file implementors.h.