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 2448 of file RootFile.cc.

Constructor & Destructor Documentation

edm::DummyProvenanceReader::DummyProvenanceReader ( )

Definition at line 2461 of file RootFile.cc.

edm::DummyProvenanceReader::~DummyProvenanceReader ( )
inlineoverride

Definition at line 2451 of file RootFile.cc.

2451 {}

Member Function Documentation

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

Implements edm::ProvenanceReaderBase.

Definition at line 2463 of file RootFile.cc.

2463  {
2464  // Not providing parentage!!!
2465  return std::set<ProductProvenance>{};
2466  }
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 2467 of file RootFile.cc.

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