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

Private Member Functions

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

Detailed Description

Definition at line 2117 of file RootFile.cc.

Constructor & Destructor Documentation

edm::DummyProvenanceReader::DummyProvenanceReader ( )

Definition at line 2130 of file RootFile.cc.

edm::DummyProvenanceReader::~DummyProvenanceReader ( )
inlineoverride

Member Function Documentation

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

Implements edm::ProvenanceReaderBase.

Definition at line 2135 of file RootFile.cc.

2135  {
2136  // Not providing parentage!!!
2137  return std::set<ProductProvenance>{};
2138  }
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 2140 of file RootFile.cc.

2144  {
2145  if(nullptr == writeTo.load()) {
2146  auto emptyProv = std::make_unique<const std::set<ProductProvenance>>();
2147  const std::set<ProductProvenance>* expected = nullptr;
2148  if(writeTo.compare_exchange_strong(expected,emptyProv.get())) {
2149  emptyProv.release();
2150  }
2151  }
2152  }