CMS 3D CMS Logo

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 ()
 
virtual ~DummyProvenanceReader ()
 
- Public Member Functions inherited from edm::ProvenanceReaderBase
 ProvenanceReaderBase ()
 
virtual ~ProvenanceReaderBase ()
 

Private Member Functions

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

Detailed Description

Definition at line 2106 of file RootFile.cc.

Constructor & Destructor Documentation

edm::DummyProvenanceReader::DummyProvenanceReader ( )

Definition at line 2119 of file RootFile.cc.

virtual edm::DummyProvenanceReader::~DummyProvenanceReader ( )
inlinevirtual

Member Function Documentation

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

Implements edm::ProvenanceReaderBase.

Definition at line 2124 of file RootFile.cc.

2124  {
2125  // Not providing parentage!!!
2126  return std::set<ProductProvenance>{};
2127  }
void edm::DummyProvenanceReader::readProvenanceAsync ( WaitingTask task,
ModuleCallingContext const *  moduleCallingContext,
unsigned int  transitionIndex,
std::atomic< const std::set< ProductProvenance > * > &  writeTo 
) const
overrideprivatevirtual

Implements edm::ProvenanceReaderBase.

Definition at line 2129 of file RootFile.cc.

2133  {
2134  if(nullptr == writeTo.load()) {
2135  auto emptyProv = std::make_unique<const std::set<ProductProvenance>>();
2136  const std::set<ProductProvenance>* expected = nullptr;
2137  if(writeTo.compare_exchange_strong(expected,emptyProv.get())) {
2138  emptyProv.release();
2139  }
2140  }
2141  }