CMS 3D CMS Logo

Public Member Functions | Private Attributes

edm::EntryDescription Class Reference

#include <EntryDescription.h>

List of all members.

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< 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.

edm::EntryDescription::~EntryDescription ( ) [inline]

Definition at line 32 of file EntryDescription.h.

{}

Member Function Documentation

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]

Definition at line 40 of file EntryDescription.h.

References parents_.

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

Definition at line 39 of file EntryDescription.h.

References parents_.

{return parents_;}
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.
  }

Member Data Documentation

Hash<ModuleDescriptionType> edm::EntryDescription::moduleDescriptionID_ [private]

Definition at line 48 of file EntryDescription.h.

Referenced by id().

Definition at line 44 of file EntryDescription.h.

Referenced by id(), and parents().