CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
List of all members | Public Member Functions | Private Member Functions
edm::DummyProvenanceReader Class Reference
Inheritance diagram for edm::DummyProvenanceReader:
edm::ProvenanceReaderBase

Public Member Functions

 DummyProvenanceReader ()
 
 ~DummyProvenanceReader () override
 
- Public Member Functions inherited from edm::ProvenanceReaderBase
 ProvenanceReaderBase ()
 
virtual ~ProvenanceReaderBase ()
 

Private Member Functions

std::set< ProductProvenancereadProvenance (unsigned int) const override
 
void readProvenanceAsync (WaitingTaskHolder task, ModuleCallingContext const *moduleCallingContext, unsigned int transitionIndex, std::atomic< const std::set< ProductProvenance > * > &writeTo) const override
 

Detailed Description

Definition at line 2447 of file RootFile.cc.

Constructor & Destructor Documentation

edm::DummyProvenanceReader::DummyProvenanceReader ( )

Definition at line 2460 of file RootFile.cc.

edm::DummyProvenanceReader::~DummyProvenanceReader ( )
inlineoverride

Definition at line 2450 of file RootFile.cc.

2450 {}

Member Function Documentation

std::set< ProductProvenance > edm::DummyProvenanceReader::readProvenance ( unsigned int  ) const
overrideprivatevirtual

Implements edm::ProvenanceReaderBase.

Definition at line 2462 of file RootFile.cc.

2462  {
2463  // Not providing parentage!!!
2464  return std::set<ProductProvenance>{};
2465  }
void edm::DummyProvenanceReader::readProvenanceAsync ( WaitingTaskHolder  task,
ModuleCallingContext const *  moduleCallingContext,
unsigned int  transitionIndex,
std::atomic< const std::set< ProductProvenance > * > &  writeTo 
) const
overrideprivatevirtual

Implements edm::ProvenanceReaderBase.

Definition at line 2466 of file RootFile.cc.

2469  {
2470  if (nullptr == writeTo.load()) {
2471  auto emptyProv = std::make_unique<const std::set<ProductProvenance>>();
2472  const std::set<ProductProvenance>* expected = nullptr;
2473  if (writeTo.compare_exchange_strong(expected, emptyProv.get())) {
2474  emptyProv.release();
2475  }
2476  }
2477  }