CMS 3D CMS Logo

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

#include <outputmoduleAbilityToImplementor.h>

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

Public Member Functions

RunCacheHolder< T, C > & operator= (RunCacheHolder< T, C > const &)=delete
 
 RunCacheHolder (edm::ParameterSet const &iPSet)
 
 RunCacheHolder (RunCacheHolder< T, C > const &)=delete
 
 ~RunCacheHolder ()(false) override
 

Protected Member Functions

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

Private Member Functions

void doBeginRun_ (RunForOutput const &rp) final
 
void doEndRun_ (RunForOutput const &rp) final
 
virtual std::shared_ptr< C > globalBeginRun (RunForOutput const &) const =0
 
virtual void globalEndRun (RunForOutput const &) const =0
 

Private Attributes

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

Detailed Description

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

Definition at line 52 of file outputmoduleAbilityToImplementor.h.

Constructor & Destructor Documentation

template<typename T , typename C >
edm::global::outputmodule::RunCacheHolder< T, C >::RunCacheHolder ( edm::ParameterSet const &  iPSet)
inline
template<typename T , typename C >
edm::global::outputmodule::RunCacheHolder< T, C >::RunCacheHolder ( RunCacheHolder< T, C > const &  )
delete
template<typename T , typename C >
edm::global::outputmodule::RunCacheHolder< T, C >::~RunCacheHolder ( )
inlineoverride

Definition at line 57 of file outputmoduleAbilityToImplementor.h.

57 {};

Member Function Documentation

template<typename T , typename C >
void edm::global::outputmodule::RunCacheHolder< T, C >::doBeginRun_ ( RunForOutput const &  rp)
inlinefinalprivate

Definition at line 63 of file outputmoduleAbilityToImplementor.h.

63 { cache_ = globalBeginRun(rp); }
virtual std::shared_ptr< C > globalBeginRun(RunForOutput const &) const =0
edm::propagate_const< std::shared_ptr< C > > cache_
template<typename T , typename C >
void edm::global::outputmodule::RunCacheHolder< T, C >::doEndRun_ ( RunForOutput const &  rp)
inlinefinalprivate

Definition at line 64 of file outputmoduleAbilityToImplementor.h.

64  {
65  globalEndRun(rp);
66  cache_ = nullptr; // propagate_const<T> has no reset() function
67  }
virtual void globalEndRun(RunForOutput const &) const =0
edm::propagate_const< std::shared_ptr< C > > cache_
template<typename T , typename C >
virtual std::shared_ptr<C> edm::global::outputmodule::RunCacheHolder< T, C >::globalBeginRun ( RunForOutput const &  ) const
privatepure virtual
template<typename T , typename C >
virtual void edm::global::outputmodule::RunCacheHolder< T, C >::globalEndRun ( RunForOutput const &  ) const
privatepure virtual
template<typename T , typename C >
RunCacheHolder<T, C>& edm::global::outputmodule::RunCacheHolder< T, C >::operator= ( RunCacheHolder< T, C > const &  )
delete
template<typename T , typename C >
C const* edm::global::outputmodule::RunCacheHolder< T, C >::runCache ( edm::RunIndex  iID) const
inlineprotected

Definition at line 60 of file outputmoduleAbilityToImplementor.h.

60 { return cache_.get(); }
element_type const * get() const
edm::propagate_const< std::shared_ptr< C > > cache_

Member Data Documentation

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

Definition at line 72 of file outputmoduleAbilityToImplementor.h.