CMS 3D CMS Logo

Public Member Functions | Private Attributes

edm::EventEntryDescription Class Reference

#include <EventEntryDescription.h>

List of all members.

Public Member Functions

 EventEntryDescription ()
EntryDescriptionID id () const
std::vector< BranchID > const & parents () const
std::vector< BranchID > & parents ()
void write (std::ostream &os) const
 ~EventEntryDescription ()

Private Attributes

Hash< ModuleDescriptionType > moduleDescriptionID_
std::vector< BranchIDparents_

Detailed Description

Definition at line 28 of file EventEntryDescription.h.


Constructor & Destructor Documentation

edm::EventEntryDescription::EventEntryDescription ( )

Definition at line 11 of file EventEntryDescription.cc.

                                               :
    parents_()
  { }
edm::EventEntryDescription::~EventEntryDescription ( ) [inline]

Definition at line 32 of file EventEntryDescription.h.

{}

Member Function Documentation

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

Definition at line 16 of file EventEntryDescription.cc.

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

  {
    // This implementation is ripe for optimization.
    std::ostringstream oss;
    oss << moduleDescriptionID_ << ' ';
    for (std::vector<BranchID>::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<BranchID>& edm::EventEntryDescription::parents ( ) [inline]

Definition at line 40 of file EventEntryDescription.h.

References parents_.

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

Definition at line 39 of file EventEntryDescription.h.

References parents_.

Referenced by edm::operator==().

{return parents_;}
void edm::EventEntryDescription::write ( std::ostream &  os) const

Definition at line 37 of file EventEntryDescription.cc.

Referenced by edm::operator<<().

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

Member Data Documentation

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

Definition at line 47 of file EventEntryDescription.h.

Referenced by id().

Definition at line 45 of file EventEntryDescription.h.

Referenced by id(), and parents().