CMS 3D CMS Logo

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

#include <ProcessHistoryRegistry.h>

Public Types

typedef ProcessHistoryMap collection_type
 
typedef ProcessHistory value_type
 
typedef ProcessHistoryVector vector_type
 

Public Member Functions

ProcessHistoryMap::const_iterator begin () const
 
ProcessHistoryMap::const_iterator end () const
 
ProcessHistory const * getMapped (ProcessHistoryID const &key) const
 
bool getMapped (ProcessHistoryID const &key, ProcessHistory &value) const
 
ProcessHistoryRegistryoperator= (ProcessHistoryRegistry const &)=delete
 
 ProcessHistoryRegistry ()
 
 ProcessHistoryRegistry (ProcessHistoryRegistry const &)=delete
 
ProcessHistoryID const & reducedProcessHistoryID (ProcessHistoryID const &fullID) const
 
bool registerProcessHistory (ProcessHistory const &processHistory)
 

Private Attributes

ProcessHistoryMap data_
 
std::map< ProcessHistoryID, ProcessHistoryIDextra_
 

Detailed Description

Author
Bill Tanenbaum, modified 23 August, 2013

Definition at line 18 of file ProcessHistoryRegistry.h.

Member Typedef Documentation

◆ collection_type

Definition at line 21 of file ProcessHistoryRegistry.h.

◆ value_type

Definition at line 20 of file ProcessHistoryRegistry.h.

◆ vector_type

Definition at line 22 of file ProcessHistoryRegistry.h.

Constructor & Destructor Documentation

◆ ProcessHistoryRegistry() [1/2]

edm::ProcessHistoryRegistry::ProcessHistoryRegistry ( )

Definition at line 6 of file ProcessHistoryRegistry.cc.

6  : data_(), extra_() {
7  // insert the mapping for an empty process history
8  extra_.insert(std::pair<ProcessHistoryID, ProcessHistoryID>(ProcessHistory().id(), ProcessHistory().reduce().id()));
9  }

References extra_, and ProducerES_cfi::ProcessHistory.

◆ ProcessHistoryRegistry() [2/2]

edm::ProcessHistoryRegistry::ProcessHistoryRegistry ( ProcessHistoryRegistry const &  )
delete

Member Function Documentation

◆ begin()

ProcessHistoryMap::const_iterator edm::ProcessHistoryRegistry::begin ( void  ) const
inline

Definition at line 31 of file ProcessHistoryRegistry.h.

31 { return data_.begin(); }

References data_.

◆ end()

ProcessHistoryMap::const_iterator edm::ProcessHistoryRegistry::end ( void  ) const
inline

Definition at line 32 of file ProcessHistoryRegistry.h.

32 { return data_.end(); }

References data_.

Referenced by Types.LuminosityBlockRange::cppID(), and Types.EventRange::cppID().

◆ getMapped() [1/2]

ProcessHistory const * edm::ProcessHistoryRegistry::getMapped ( ProcessHistoryID const &  key) const

Definition at line 38 of file ProcessHistoryRegistry.cc.

38  {
39  auto const& iter = data_.find(key);
40  if (iter == data_.end()) {
41  return nullptr;
42  }
43  return &iter->second;
44  }

References data_, and crabWrapper::key.

◆ getMapped() [2/2]

bool edm::ProcessHistoryRegistry::getMapped ( ProcessHistoryID const &  key,
ProcessHistory value 
) const

◆ operator=()

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

◆ reducedProcessHistoryID()

ProcessHistoryID const & edm::ProcessHistoryRegistry::reducedProcessHistoryID ( ProcessHistoryID const &  fullID) const

◆ registerProcessHistory()

bool edm::ProcessHistoryRegistry::registerProcessHistory ( ProcessHistory const &  processHistory)

Member Data Documentation

◆ data_

ProcessHistoryMap edm::ProcessHistoryRegistry::data_
private

Definition at line 35 of file ProcessHistoryRegistry.h.

Referenced by begin(), end(), getMapped(), and registerProcessHistory().

◆ extra_

std::map<ProcessHistoryID, ProcessHistoryID> edm::ProcessHistoryRegistry::extra_
private
ProducerES_cfi.ProcessHistory
ProcessHistory
Definition: ProducerES_cfi.py:14
cms::cuda::assert
assert(be >=bs)
createJobs.tmp
tmp
align.sh
Definition: createJobs.py:716
newFWLiteAna.found
found
Definition: newFWLiteAna.py:118
edm::ProcessHistoryRegistry::extra_
std::map< ProcessHistoryID, ProcessHistoryID > extra_
Definition: ProcessHistoryRegistry.h:36
value
Definition: value.py:1
edm::ProcessHistoryRegistry::data_
ProcessHistoryMap data_
Definition: ProcessHistoryRegistry.h:35
eostools.move
def move(src, dest)
Definition: eostools.py:511
edm::ProcessHistoryID
Hash< ProcessHistoryType > ProcessHistoryID
Definition: ProcessHistoryID.h:8
crabWrapper.key
key
Definition: crabWrapper.py:19