CMS 3D CMS Logo

List of all members | Public Member Functions | Private Attributes
edm::UnscheduledConfigurator Class Reference

#include <UnscheduledConfigurator.h>

Public Member Functions

UnscheduledAuxiliary const * auxiliary () const
 
WorkerfindWorker (std::string const &iLabel) const
 
const UnscheduledConfiguratoroperator= (const UnscheduledConfigurator &)=delete
 
template<typename IT >
 UnscheduledConfigurator (IT iBegin, IT iEnd, UnscheduledAuxiliary const *iAux)
 
 UnscheduledConfigurator (const UnscheduledConfigurator &)=delete
 

Private Attributes

UnscheduledAuxiliary const * m_aux
 
std::unordered_map< std::string, Worker * > m_labelToWorker
 

Detailed Description

Definition at line 32 of file UnscheduledConfigurator.h.

Constructor & Destructor Documentation

◆ UnscheduledConfigurator() [1/2]

template<typename IT >
edm::UnscheduledConfigurator::UnscheduledConfigurator ( IT  iBegin,
IT  iEnd,
UnscheduledAuxiliary const *  iAux 
)
inline

Definition at line 35 of file UnscheduledConfigurator.h.

References ALPAKA_ACCELERATOR_NAMESPACE::vertexFinder::it, and m_labelToWorker.

35  : m_aux(iAux) {
36  for (auto it = iBegin; it != iEnd; ++it) {
37  m_labelToWorker.emplace((*it)->description()->moduleLabel(), *it);
38  }
39  }
UnscheduledAuxiliary const * m_aux
std::unordered_map< std::string, Worker * > m_labelToWorker

◆ UnscheduledConfigurator() [2/2]

edm::UnscheduledConfigurator::UnscheduledConfigurator ( const UnscheduledConfigurator )
delete

Member Function Documentation

◆ auxiliary()

UnscheduledAuxiliary const* edm::UnscheduledConfigurator::auxiliary ( ) const
inline

◆ findWorker()

Worker* edm::UnscheduledConfigurator::findWorker ( std::string const &  iLabel) const
inline

Definition at line 45 of file UnscheduledConfigurator.h.

References m_labelToWorker.

Referenced by edm::PuttableProductResolver::setupUnscheduled(), edm::UnscheduledProductResolver::setupUnscheduled(), edm::TransformingProductResolver::setupUnscheduled(), and edm::SwitchBaseProductResolver::setupUnscheduled().

45  {
46  auto itFound = m_labelToWorker.find(iLabel);
47  if (itFound != m_labelToWorker.end()) {
48  return itFound->second;
49  }
50  return nullptr;
51  }
std::unordered_map< std::string, Worker * > m_labelToWorker

◆ operator=()

const UnscheduledConfigurator& edm::UnscheduledConfigurator::operator= ( const UnscheduledConfigurator )
delete

Member Data Documentation

◆ m_aux

UnscheduledAuxiliary const* edm::UnscheduledConfigurator::m_aux
private

Definition at line 58 of file UnscheduledConfigurator.h.

Referenced by auxiliary().

◆ m_labelToWorker

std::unordered_map<std::string, Worker*> edm::UnscheduledConfigurator::m_labelToWorker
private

Definition at line 57 of file UnscheduledConfigurator.h.

Referenced by findWorker(), and UnscheduledConfigurator().