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 34 of file InternalDataKey.h.

Constructor & Destructor Documentation

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

Definition at line 40 of file InternalDataKey.h.

43  :
44  type_(iType),
45  module_(iModule != nullptr ? iModule : kEmpty()),
46  product_(iProduct != nullptr ? iProduct : kEmpty()),
47  process_(iProcess != nullptr ? iProcess : kEmpty()) {}
char const * kEmpty() const
fwlite::internal::DataKey::~DataKey ( )
inline

Definition at line 49 of file InternalDataKey.h.

49  {
50  }

Member Function Documentation

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

Definition at line 70 of file InternalDataKey.h.

Referenced by fwlite::DataGetterHelper::getBranchDataFor().

70 {return "";}
char const* fwlite::internal::DataKey::module ( ) const
inline

Definition at line 71 of file InternalDataKey.h.

References sistrip::module_.

Referenced by fwlite::DataGetterHelper::getBranchDataFor().

71 {return module_;}
bool fwlite::internal::DataKey::operator< ( const DataKey iRHS) const
inline

Definition at line 52 of file InternalDataKey.h.

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

52  {
53  if(type_ < iRHS.type_) {
54  return true;
55  }
56  if(iRHS.type_ < type_) {
57  return false;
58  }
59  int comp = std::strcmp(module_,iRHS.module_);
60  if(0 != comp) {
61  return comp < 0;
62  }
63  comp = std::strcmp(product_,iRHS.product_);
64  if(0 != comp) {
65  return comp < 0;
66  }
67  comp = std::strcmp(process_,iRHS.process_);
68  return comp < 0;
69  }
char const* fwlite::internal::DataKey::process ( ) const
inline
char const* fwlite::internal::DataKey::product ( ) const
inline

Definition at line 72 of file InternalDataKey.h.

Referenced by fwlite::DataGetterHelper::getBranchDataFor().

72 {return product_;}
const edm::TypeID& fwlite::internal::DataKey::typeID ( ) const
inline

Definition at line 74 of file InternalDataKey.h.

74 {return type_;}

Member Data Documentation

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

Definition at line 78 of file InternalDataKey.h.

Referenced by operator<().

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

Definition at line 80 of file InternalDataKey.h.

Referenced by operator<().

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

Definition at line 79 of file InternalDataKey.h.

Referenced by operator<().

edm::TypeID fwlite::internal::DataKey::type_
private