CMS 3D CMS Logo

edm::BranchID Class Reference

#include <DataFormats/Provenance/interface/BranchID.h>

List of all members.

Public Member Functions

 BranchID (std::string const &str)
 BranchID ()
unsigned int id () const
bool isValid () const
bool operator!= (BranchID const &rh) const
bool operator< (BranchID const &rh) const
bool operator== (BranchID const &rh) const
bool operator> (BranchID const &rh) const
void setID (std::string const &branchName)

Private Attributes

unsigned int id_


Detailed Description

Definition at line 14 of file BranchID.h.


Constructor & Destructor Documentation

edm::BranchID::BranchID (  )  [inline]

Definition at line 16 of file BranchID.h.

00016 : id_(0) { }

edm::BranchID::BranchID ( std::string const &  str  )  [inline, explicit]

Definition at line 17 of file BranchID.h.

References setID().

00017                                             {
00018       setID(str);
00019     }


Member Function Documentation

unsigned int edm::BranchID::id ( void   )  const [inline]

Definition at line 22 of file BranchID.h.

References id_.

00022 { return id_; }

bool edm::BranchID::isValid ( void   )  const [inline]

Definition at line 23 of file BranchID.h.

References id_.

Referenced by edm::BranchDescription::init().

00023 {return id_ != 0;}

bool edm::BranchID::operator!= ( BranchID const &  rh  )  const [inline]

Definition at line 28 of file BranchID.h.

References id_.

00028 {return id_ != rh.id_;}

bool edm::BranchID::operator< ( BranchID const &  rh  )  const [inline]

Definition at line 25 of file BranchID.h.

References id_.

00025 {return id_ < rh.id_;}

bool edm::BranchID::operator== ( BranchID const &  rh  )  const [inline]

Definition at line 27 of file BranchID.h.

References id_.

00027 {return id_ == rh.id_;}

bool edm::BranchID::operator> ( BranchID const &  rh  )  const [inline]

Definition at line 26 of file BranchID.h.

References id_.

00026 {return id_ > rh.id_;}

void edm::BranchID::setID ( std::string const &  branchName  ) 

Definition at line 7 of file BranchID.cc.

References cms::CRC32Calculator::checksum(), and id_.

Referenced by BranchID(), and edm::BranchDescription::init().

00007                                                   {
00008     cms::CRC32Calculator crc32(branchName);
00009     id_ = crc32.checksum();
00010   }


Member Data Documentation

unsigned int edm::BranchID::id_ [private]

Definition at line 31 of file BranchID.h.

Referenced by id(), isValid(), operator!=(), operator<(), operator==(), operator>(), and setID().


The documentation for this class was generated from the following files:
Generated on Tue Jun 9 18:39:40 2009 for CMSSW by  doxygen 1.5.4