#include <BranchID.h>
Public Types | |
typedef unsigned int | value_type |
Public Member Functions | |
BranchID () | |
BranchID (std::string const &branchName) | |
BranchID (value_type id) | |
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) |
Static Private Member Functions | |
static value_type | toID (std::string const &branchName) |
Private Attributes | |
value_type | id_ |
Definition at line 14 of file BranchID.h.
typedef unsigned int edm::BranchID::value_type |
Definition at line 16 of file BranchID.h.
edm::BranchID::BranchID | ( | ) | [inline] |
Definition at line 17 of file BranchID.h.
: id_(0) { }
edm::BranchID::BranchID | ( | std::string const & | branchName | ) | [inline, explicit] |
Definition at line 18 of file BranchID.h.
edm::BranchID::BranchID | ( | value_type | id | ) | [inline, explicit] |
Definition at line 20 of file BranchID.h.
: id_(id) { }
unsigned int edm::BranchID::id | ( | void | ) | const [inline] |
Definition at line 23 of file BranchID.h.
References id_.
Referenced by edm::RootOutputFile::insertProductProvenance().
{ return id_; }
bool edm::BranchID::isValid | ( | void | ) | const [inline] |
Definition at line 24 of file BranchID.h.
References id_.
Referenced by edm::EventPrincipal::branchIDToProductID(), edm::BranchDescription::initBranchName(), and edm::EventPrincipal::oldToNewProductID_().
{return id_ != 0;}
bool edm::BranchID::operator!= | ( | BranchID const & | rh | ) | const [inline] |
bool edm::BranchID::operator< | ( | BranchID const & | rh | ) | const [inline] |
bool edm::BranchID::operator== | ( | BranchID const & | rh | ) | const [inline] |
bool edm::BranchID::operator> | ( | BranchID const & | rh | ) | const [inline] |
void edm::BranchID::setID | ( | std::string const & | branchName | ) | [inline] |
Definition at line 22 of file BranchID.h.
Referenced by edm::BranchDescription::initBranchName().
BranchID::value_type edm::BranchID::toID | ( | std::string const & | branchName | ) | [static, private] |
Definition at line 8 of file BranchID.cc.
References cms::CRC32Calculator::checksum().
Referenced by setID().
{ cms::CRC32Calculator crc32(branchName); return crc32.checksum(); }
value_type edm::BranchID::id_ [private] |
Definition at line 33 of file BranchID.h.
Referenced by id(), isValid(), operator!=(), operator<(), operator==(), operator>(), and setID().