CMS 3D CMS Logo

List of all members | Public Types | Public Member Functions | Static Private Member Functions | Private Attributes
edm::BranchID Class Reference

#include <BranchID.h>

Public Types

typedef unsigned int value_type
 

Public Member Functions

 BranchID ()
 
 BranchID (std::string const &branchName)
 
 BranchID (value_type theID)
 
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_
 

Detailed Description

Definition at line 14 of file BranchID.h.

Member Typedef Documentation

◆ value_type

typedef unsigned int edm::BranchID::value_type

Definition at line 16 of file BranchID.h.

Constructor & Destructor Documentation

◆ BranchID() [1/3]

edm::BranchID::BranchID ( )
inline

Definition at line 17 of file BranchID.h.

17 : id_(0) {}
value_type id_
Definition: BranchID.h:31

◆ BranchID() [2/3]

edm::BranchID::BranchID ( std::string const &  branchName)
inlineexplicit

Definition at line 18 of file BranchID.h.

18 : id_(toID(branchName)) {}
value_type id_
Definition: BranchID.h:31
static value_type toID(std::string const &branchName)
Definition: BranchID.cc:7

◆ BranchID() [3/3]

edm::BranchID::BranchID ( value_type  theID)
inlineexplicit

Definition at line 19 of file BranchID.h.

19 : id_(theID) {}
value_type id_
Definition: BranchID.h:31

Member Function Documentation

◆ id()

unsigned int edm::BranchID::id ( ) const
inline

◆ isValid()

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

◆ operator!=()

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

Definition at line 27 of file BranchID.h.

References id_.

27 { return id_ != rh.id_; }
value_type id_
Definition: BranchID.h:31

◆ operator<()

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

Definition at line 24 of file BranchID.h.

References id_.

24 { return id_ < rh.id_; }
value_type id_
Definition: BranchID.h:31

◆ operator==()

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

Definition at line 26 of file BranchID.h.

References id_.

26 { return id_ == rh.id_; }
value_type id_
Definition: BranchID.h:31

◆ operator>()

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

Definition at line 25 of file BranchID.h.

References id_.

25 { return id_ > rh.id_; }
value_type id_
Definition: BranchID.h:31

◆ setID()

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

Definition at line 20 of file BranchID.h.

References electrons_cff::branchName, id_, and toID().

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

20 { id_ = toID(branchName); }
value_type id_
Definition: BranchID.h:31
static value_type toID(std::string const &branchName)
Definition: BranchID.cc:7

◆ toID()

BranchID::value_type edm::BranchID::toID ( std::string const &  branchName)
staticprivate

Definition at line 7 of file BranchID.cc.

References electrons_cff::branchName, and cms::CRC32Calculator::checksum().

Referenced by setID().

7  {
9  return crc32.checksum();
10  }

Member Data Documentation

◆ id_

value_type edm::BranchID::id_
private

Definition at line 31 of file BranchID.h.

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