test
CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Member Functions | Private Member Functions
edm::DelayedReader Class Referenceabstract

#include <DelayedReader.h>

Inheritance diagram for edm::DelayedReader:
edm::root::FWLiteDelayedReader edm::RootDelayedReader

Public Member Functions

virtual std::unique_ptr
< WrapperBase
getProduct (BranchKey const &k, EDProductGetter const *ep)
 
void mergeReaders (DelayedReader *other)
 
void reset ()
 
SharedResourcesAcquirersharedResources () const
 
virtual ~DelayedReader ()
 

Private Member Functions

virtual std::unique_ptr
< WrapperBase
getProduct_ (BranchKey const &k, EDProductGetter const *ep)=0
 
virtual void mergeReaders_ (DelayedReader *)=0
 
virtual void reset_ ()=0
 
virtual SharedResourcesAcquirersharedResources_ () const
 

Detailed Description

Definition at line 19 of file DelayedReader.h.

Constructor & Destructor Documentation

edm::DelayedReader::~DelayedReader ( )
virtual

Definition at line 13 of file DelayedReader.cc.

13 {}

Member Function Documentation

std::unique_ptr< WrapperBase > edm::DelayedReader::getProduct ( BranchKey const &  k,
EDProductGetter const *  ep 
)
virtual

Definition at line 16 of file DelayedReader.cc.

References getProduct_(), and sharedResources_().

16  {
17  auto sr = sharedResources_();
18  std::unique_lock<SharedResourcesAcquirer> guard;
19  if(sr) {
20  guard =std::unique_lock<SharedResourcesAcquirer>(*sr);
21  }
22  return getProduct_(k, ep);
23  }
virtual std::unique_ptr< WrapperBase > getProduct_(BranchKey const &k, EDProductGetter const *ep)=0
virtual SharedResourcesAcquirer * sharedResources_() const
virtual std::unique_ptr<WrapperBase> edm::DelayedReader::getProduct_ ( BranchKey const &  k,
EDProductGetter const *  ep 
)
privatepure virtual
void edm::DelayedReader::mergeReaders ( DelayedReader other)
inline

Definition at line 24 of file DelayedReader.h.

References mergeReaders_().

Referenced by edm::Principal::recombine().

24 {mergeReaders_(other);}
virtual void mergeReaders_(DelayedReader *)=0
virtual void edm::DelayedReader::mergeReaders_ ( DelayedReader )
privatepure virtual
void edm::DelayedReader::reset ( void  )
inline

Definition at line 25 of file DelayedReader.h.

References reset_().

25 {reset_();}
virtual void reset_()=0
virtual void edm::DelayedReader::reset_ ( )
privatepure virtual

Implemented in edm::root::FWLiteDelayedReader, and edm::RootDelayedReader.

Referenced by reset().

SharedResourcesAcquirer* edm::DelayedReader::sharedResources ( ) const
inline

Definition at line 27 of file DelayedReader.h.

References sharedResources_().

27  {
28  return sharedResources_();
29  }
virtual SharedResourcesAcquirer * sharedResources_() const
SharedResourcesAcquirer * edm::DelayedReader::sharedResources_ ( ) const
privatevirtual

Reimplemented in edm::RootDelayedReader.

Definition at line 26 of file DelayedReader.cc.

Referenced by getProduct(), and sharedResources().

26  {
27  return nullptr;
28  }