CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Member Functions | Private Attributes
edm::EntryDescription Class Reference

#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< ModuleDescriptionTypemoduleDescriptionID_
 
std::vector< ProductIDparents_
 

Detailed Description

Definition at line 28 of file EntryDescription.h.

Constructor & Destructor Documentation

edm::EntryDescription::EntryDescription ( )

Definition at line 11 of file EntryDescription.cc.

11  :
12  parents_(),
14  { }
Hash< ModuleDescriptionType > moduleDescriptionID_
std::vector< ProductID > parents_
edm::EntryDescription::~EntryDescription ( )
inline

Definition at line 32 of file EntryDescription.h.

32 {}

Member Function Documentation

EntryDescriptionID edm::EntryDescription::id ( void  ) const

Definition at line 17 of file EntryDescription.cc.

References cms::Digest::digest(), i, moduleDescriptionID_, parents_, and cms::MD5Result::toString().

18  {
19  // This implementation is ripe for optimization.
20  std::ostringstream oss;
21  oss << moduleDescriptionID_ << ' ';
22  for (std::vector<ProductID>::const_iterator
23  i = parents_.begin(),
24  e = parents_.end();
25  i != e;
26  ++i)
27  {
28  oss << *i << ' ';
29  }
30 
31  std::string stringrep = oss.str();
32  cms::Digest md5alg(stringrep);
33  return EntryDescriptionID(md5alg.digest().toString());
34  }
int i
Definition: DBlmapReader.cc:9
Hash< ModuleDescriptionType > moduleDescriptionID_
Hash< EntryDescriptionType > EntryDescriptionID
std::vector< ProductID > parents_
std::vector<ProductID> const& edm::EntryDescription::parents ( ) const
inline

Definition at line 39 of file EntryDescription.h.

References parents_.

39 {return parents_;}
std::vector< ProductID > parents_
std::vector<ProductID>& edm::EntryDescription::parents ( )
inline

Definition at line 40 of file EntryDescription.h.

References parents_.

40 {return parents_;}
std::vector< ProductID > parents_
void edm::EntryDescription::write ( std::ostream &  os) const

Definition at line 38 of file EntryDescription.cc.

Referenced by edm::operator<<().

38  {
39  // This is grossly inadequate, but it is not critical for the
40  // first pass.
41  }

Member Data Documentation

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.

Referenced by id(), and parents().