CMS 3D CMS Logo

List of all members | Public Member Functions | Private Attributes
fwlite::internal::DataKey Class Reference

#include <InternalDataKey.h>

Public Member Functions

 DataKey (const edm::TypeID &iType, char const *iModule, char const *iProduct, char const *iProcess)
 
char const * kEmpty () const
 
char const * module () const
 
bool operator< (const DataKey &iRHS) const
 
char const * process () const
 
char const * product () const
 
const edm::TypeIDtypeID () const
 
 ~DataKey ()
 

Private Attributes

char const * module_
 
char const * process_
 
char const * product_
 
edm::TypeID type_
 

Detailed Description

Definition at line 36 of file InternalDataKey.h.

Constructor & Destructor Documentation

◆ DataKey()

fwlite::internal::DataKey::DataKey ( const edm::TypeID iType,
char const *  iModule,
char const *  iProduct,
char const *  iProcess 
)
inline

Definition at line 42 of file InternalDataKey.h.

43  : type_(iType),
44  module_(iModule != nullptr ? iModule : kEmpty()),
45  product_(iProduct != nullptr ? iProduct : kEmpty()),
46  process_(iProcess != nullptr ? iProcess : kEmpty()) {}

◆ ~DataKey()

fwlite::internal::DataKey::~DataKey ( )
inline

Definition at line 48 of file InternalDataKey.h.

48 {}

Member Function Documentation

◆ kEmpty()

char const* fwlite::internal::DataKey::kEmpty ( ) const
inline

Definition at line 68 of file InternalDataKey.h.

68 { return ""; }

◆ module()

char const* fwlite::internal::DataKey::module ( ) const
inline

Definition at line 69 of file InternalDataKey.h.

69 { return module_; }

References module_.

◆ operator<()

bool fwlite::internal::DataKey::operator< ( const DataKey iRHS) const
inline

Definition at line 50 of file InternalDataKey.h.

50  {
51  if (type_ < iRHS.type_) {
52  return true;
53  }
54  if (iRHS.type_ < type_) {
55  return false;
56  }
57  int comp = std::strcmp(module_, iRHS.module_);
58  if (0 != comp) {
59  return comp < 0;
60  }
61  comp = std::strcmp(product_, iRHS.product_);
62  if (0 != comp) {
63  return comp < 0;
64  }
65  comp = std::strcmp(process_, iRHS.process_);
66  return comp < 0;
67  }

References AlCaHLTBitMon_QueryRunRegistry::comp, module_, process_, product_, and type_.

◆ process()

char const* fwlite::internal::DataKey::process ( ) const
inline

Definition at line 71 of file InternalDataKey.h.

71 { return process_; }

References process_.

◆ product()

char const* fwlite::internal::DataKey::product ( ) const
inline

Definition at line 70 of file InternalDataKey.h.

70 { return product_; }

References product_.

◆ typeID()

const edm::TypeID& fwlite::internal::DataKey::typeID ( ) const
inline

Definition at line 72 of file InternalDataKey.h.

72 { return type_; }

References type_.

Member Data Documentation

◆ module_

char const* fwlite::internal::DataKey::module_
private

Definition at line 76 of file InternalDataKey.h.

Referenced by module(), and operator<().

◆ process_

char const* fwlite::internal::DataKey::process_
private

Definition at line 78 of file InternalDataKey.h.

Referenced by operator<(), and process().

◆ product_

char const* fwlite::internal::DataKey::product_
private

Definition at line 77 of file InternalDataKey.h.

Referenced by operator<(), and product().

◆ type_

edm::TypeID fwlite::internal::DataKey::type_
private
fwlite::internal::DataKey::module_
char const * module_
Definition: InternalDataKey.h:76
AlCaHLTBitMon_QueryRunRegistry.comp
comp
Definition: AlCaHLTBitMon_QueryRunRegistry.py:249
fwlite::internal::DataKey::type_
edm::TypeID type_
Definition: InternalDataKey.h:75
fwlite::internal::DataKey::product_
char const * product_
Definition: InternalDataKey.h:77
fwlite::internal::DataKey::process_
char const * process_
Definition: InternalDataKey.h:78
fwlite::internal::DataKey::kEmpty
char const * kEmpty() const
Definition: InternalDataKey.h:68