#include <DataFormats/Provenance/interface/ProcessHistory.h>
Definition at line 13 of file ProcessHistory.h.
typedef std::vector<value_type> edm::ProcessHistory::collection_type |
Definition at line 16 of file ProcessHistory.h.
typedef collection_type::const_iterator edm::ProcessHistory::const_iterator |
Definition at line 19 of file ProcessHistory.h.
typedef collection_type::const_reference edm::ProcessHistory::const_reference |
Definition at line 25 of file ProcessHistory.h.
typedef collection_type::const_reverse_iterator edm::ProcessHistory::const_reverse_iterator |
Definition at line 22 of file ProcessHistory.h.
typedef collection_type::iterator edm::ProcessHistory::iterator |
Definition at line 18 of file ProcessHistory.h.
typedef collection_type::reference edm::ProcessHistory::reference |
Definition at line 24 of file ProcessHistory.h.
typedef collection_type::reverse_iterator edm::ProcessHistory::reverse_iterator |
Definition at line 21 of file ProcessHistory.h.
Definition at line 27 of file ProcessHistory.h.
Definition at line 15 of file ProcessHistory.h.
edm::ProcessHistory::ProcessHistory | ( | ) | [inline] |
edm::ProcessHistory::ProcessHistory | ( | size_type | n | ) | [inline, explicit] |
edm::ProcessHistory::ProcessHistory | ( | collection_type const & | vec | ) | [inline, explicit] |
const_reference edm::ProcessHistory::at | ( | size_type | i | ) | const [inline] |
const_iterator edm::ProcessHistory::begin | ( | ) | const [inline] |
Definition at line 46 of file ProcessHistory.h.
References data_.
Referenced by edm::Principal::addToProcessHistory(), getConfigurationForProcess(), fwlite::Event::getProcessHistory(), id(), operator<<(), and edm::AsciiOutputModule::write().
00046 {return data_.begin();}
size_type edm::ProcessHistory::capacity | ( | ) | const [inline] |
collection_type const& edm::ProcessHistory::data | ( | ) | const [inline] |
Definition at line 58 of file ProcessHistory.h.
References data_.
Referenced by edm::isAncestor(), and edm::operator==().
00058 {return data_;}
bool edm::ProcessHistory::empty | ( | ) | const [inline] |
const_iterator edm::ProcessHistory::end | ( | ) | const [inline] |
Definition at line 47 of file ProcessHistory.h.
References data_.
Referenced by edm::Principal::addToProcessHistory(), getConfigurationForProcess(), fwlite::Event::getProcessHistory(), id(), operator<<(), and edm::AsciiOutputModule::write().
00047 {return data_.end();}
bool edm::ProcessHistory::getConfigurationForProcess | ( | std::string const & | name, | |
ProcessConfiguration & | config | |||
) | const |
Definition at line 33 of file ProcessHistory.cc.
References begin(), e, end(), and i.
Referenced by edm::Event::getProcessParameterSet().
00034 { 00035 for (const_iterator i = begin(), e = end(); i != e; ++i) { 00036 if (i->processName() == name) { 00037 config = *i; 00038 return true; 00039 } 00040 } 00041 // Name not found! 00042 return false; 00043 }
ProcessHistoryID edm::ProcessHistory::id | ( | void | ) | const |
Definition at line 12 of file ProcessHistory.cc.
References begin(), cms::Digest::digest(), e, end(), i, phid(), edm::Hash< I >::swap(), and tmp.
Referenced by edm::Principal::addToProcessHistory().
00012 { 00013 if(phid().isValid()) { 00014 return phid(); 00015 } 00016 // This implementation is ripe for optimization. 00017 // We do not use operator<< because it does not write out everything. 00018 std::ostringstream oss; 00019 for (const_iterator i = begin(), e = end(); i != e; ++i) { 00020 oss << i->processName() << ' ' 00021 << i->parameterSetID() << ' ' 00022 << i->releaseVersion() << ' ' 00023 << i->passID() << ' '; 00024 } 00025 std::string stringrep = oss.str(); 00026 cms::Digest md5alg(stringrep); 00027 ProcessHistoryID tmp(md5alg.digest().toString()); 00028 phid().swap(tmp); 00029 return phid(); 00030 }
const_reference edm::ProcessHistory::operator[] | ( | size_type | i | ) | const [inline] |
ProcessHistoryID& edm::ProcessHistory::phid | ( | ) | const [inline, private] |
Definition at line 78 of file ProcessHistory.h.
References transients_.
Referenced by id(), push_back(), and swap().
00078 {return transients_.get().phid_;}
void edm::ProcessHistory::push_back | ( | const_reference | t | ) | [inline] |
Definition at line 33 of file ProcessHistory.h.
Referenced by edm::Principal::addToProcessHistory().
00033 {data_.push_back(t); phid() = ProcessHistoryID();}
const_reverse_iterator edm::ProcessHistory::rbegin | ( | ) | const [inline] |
Definition at line 49 of file ProcessHistory.h.
References data_.
Referenced by edm::Principal::findGroups(), fwlite::Event::getBranchDataFor(), and RawDataCollectorModule::produce().
00049 {return data_.rbegin();}
const_reverse_iterator edm::ProcessHistory::rend | ( | ) | const [inline] |
Definition at line 50 of file ProcessHistory.h.
References data_.
Referenced by edm::Principal::findGroups(), and fwlite::Event::getBranchDataFor().
00050 {return data_.rend();}
void edm::ProcessHistory::setDefaultTransients | ( | ) | const [inline] |
Definition at line 73 of file ProcessHistory.h.
References transients_.
00073 { 00074 transients_ = Transients(); 00075 };
Definition at line 36 of file ProcessHistory.h.
References data_.
Referenced by edm::isAncestor().
00036 {return data_.size();}
void edm::ProcessHistory::swap | ( | ProcessHistory & | other | ) | [inline] |
Definition at line 34 of file ProcessHistory.h.
References data_, phid(), and edm::Hash< I >::swap().
Referenced by edm::swap().
collection_type edm::ProcessHistory::data_ [private] |
Definition at line 79 of file ProcessHistory.h.
Referenced by at(), begin(), capacity(), data(), empty(), end(), operator[](), push_back(), rbegin(), rend(), reserve(), size(), and swap().
Transient<Transients> edm::ProcessHistory::transients_ [mutable, private] |