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

WrapperOwningHolder getProduct (BranchKey const &k, WrapperInterfaceBase const *interface, EDProductGetter const *ep)
 
void mergeReaders (DelayedReader *other)
 
void reset ()
 
SharedResourcesAcquirersharedResources () const
 
virtual ~DelayedReader ()
 

Private Member Functions

virtual WrapperOwningHolder getProduct_ (BranchKey const &k, WrapperInterfaceBase const *interface, EDProductGetter const *ep) const =0
 
virtual void mergeReaders_ (DelayedReader *)=0
 
virtual void reset_ ()=0
 
virtual SharedResourcesAcquirersharedResources_ () const
 

Detailed Description

Definition at line 20 of file DelayedReader.h.

Constructor & Destructor Documentation

edm::DelayedReader::~DelayedReader ( )
virtual

Definition at line 13 of file DelayedReader.cc.

13 {}

Member Function Documentation

WrapperOwningHolder edm::DelayedReader::getProduct ( BranchKey const &  k,
WrapperInterfaceBase const *  interface,
EDProductGetter const *  ep 
)

Definition at line 16 of file DelayedReader.cc.

References getProduct_(), and sharedResources_().

Referenced by edm::RootDelayedReader::getProduct_().

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, interface, ep);
23  }
virtual WrapperOwningHolder getProduct_(BranchKey const &k, WrapperInterfaceBase const *interface, EDProductGetter const *ep) const =0
int k[5][pyjets_maxn]
virtual SharedResourcesAcquirer * sharedResources_() const
virtual WrapperOwningHolder edm::DelayedReader::getProduct_ ( BranchKey const &  k,
WrapperInterfaceBase const *  interface,
EDProductGetter const *  ep 
) const
privatepure virtual
void edm::DelayedReader::mergeReaders ( DelayedReader other)
inline

Definition at line 25 of file DelayedReader.h.

References mergeReaders_().

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

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

Definition at line 26 of file DelayedReader.h.

References reset_().

26 {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 28 of file DelayedReader.h.

References sharedResources_().

28  {
29  return sharedResources_();
30  }
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  }