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 (WaitingTaskHolder task, ModuleCallingContext const *moduleCallingContext, unsigned int transitionIndex, std::atomic< const std::set< ProductProvenance > * > &writeTo) const override
 

Detailed Description

Definition at line 2159 of file RootFile.cc.

Constructor & Destructor Documentation

◆ DummyProvenanceReader()

edm::DummyProvenanceReader::DummyProvenanceReader ( )

Definition at line 2172 of file RootFile.cc.

2172 : ProvenanceReaderBase() {}

◆ ~DummyProvenanceReader()

edm::DummyProvenanceReader::~DummyProvenanceReader ( )
inlineoverride

Definition at line 2162 of file RootFile.cc.

2162 {}

Member Function Documentation

◆ readProvenance()

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

Implements edm::ProvenanceReaderBase.

Definition at line 2174 of file RootFile.cc.

2174  {
2175  // Not providing parentage!!!
2176  return std::set<ProductProvenance>{};
2177  }

◆ readProvenanceAsync()

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

2181  {
2182  if (nullptr == writeTo.load()) {
2183  auto emptyProv = std::make_unique<const std::set<ProductProvenance>>();
2184  const std::set<ProductProvenance>* expected = nullptr;
2185  if (writeTo.compare_exchange_strong(expected, emptyProv.get())) {
2186  emptyProv.release();
2187  }
2188  }
2189  }
edm::ProvenanceReaderBase::ProvenanceReaderBase
ProvenanceReaderBase()
Definition: ProductProvenanceRetriever.h:47