#include <EntryDescription.h>
Public Member Functions | |
EntryDescription () | |
EntryDescriptionID | id () const |
std::vector< ProductID > const & | parents () const |
std::vector< ProductID > & | parents () |
void | write (std::ostream &os) const |
~EntryDescription () | |
Private Attributes | |
Hash< ModuleDescriptionType > | moduleDescriptionID_ |
std::vector< ProductID > | parents_ |
Definition at line 28 of file EntryDescription.h.
edm::EntryDescription::EntryDescription | ( | ) |
Definition at line 11 of file EntryDescription.cc.
: parents_(), moduleDescriptionID_() { }
edm::EntryDescription::~EntryDescription | ( | ) | [inline] |
Definition at line 32 of file EntryDescription.h.
{}
EntryDescriptionID edm::EntryDescription::id | ( | void | ) | const |
Definition at line 17 of file EntryDescription.cc.
References cms::Digest::digest(), i, moduleDescriptionID_, and parents_.
{ // This implementation is ripe for optimization. std::ostringstream oss; oss << moduleDescriptionID_ << ' '; for (std::vector<ProductID>::const_iterator i = parents_.begin(), e = parents_.end(); i != e; ++i) { oss << *i << ' '; } std::string stringrep = oss.str(); cms::Digest md5alg(stringrep); return EntryDescriptionID(md5alg.digest().toString()); }
std::vector<ProductID>& edm::EntryDescription::parents | ( | ) | [inline] |
std::vector<ProductID> const& edm::EntryDescription::parents | ( | ) | const [inline] |
void edm::EntryDescription::write | ( | std::ostream & | os | ) | const |
Definition at line 38 of file EntryDescription.cc.
Referenced by edm::operator<<().
{ // This is grossly inadequate, but it is not critical for the // first pass. }
Hash<ModuleDescriptionType> edm::EntryDescription::moduleDescriptionID_ [private] |
Definition at line 48 of file EntryDescription.h.
Referenced by id().
std::vector<ProductID> edm::EntryDescription::parents_ [private] |
Definition at line 44 of file EntryDescription.h.