CMS 3D CMS Logo

Public Member Functions | Private Attributes

fwlite::internal::DataKey Class Reference

#include <InternalDataKey.h>

List of all members.

Public Member Functions

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

Private Attributes

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

Detailed Description

Definition at line 32 of file InternalDataKey.h.


Constructor & Destructor Documentation

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

Definition at line 38 of file InternalDataKey.h.

                                          :
               type_(iType),
               module_(iModule!=0? iModule:kEmpty()),
               product_(iProduct!=0?iProduct:kEmpty()),
               process_(iProcess!=0?iProcess:kEmpty()) {}
fwlite::internal::DataKey::~DataKey ( ) [inline]

Definition at line 47 of file InternalDataKey.h.

                       {
            }

Member Function Documentation

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

Definition at line 68 of file InternalDataKey.h.

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

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

Definition at line 69 of file InternalDataKey.h.

References module_.

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

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

Definition at line 50 of file InternalDataKey.h.

References module_, process_, product_, and type_.

                                                       {
               if( type_ < iRHS.type_) {
                  return true;
               }
               if( iRHS.type_ < type_ ) {
                  return false;
               }
               int comp = std::strcmp(module_,iRHS.module_);
               if( 0!= comp) {
                  return comp <0;
               }
               comp = std::strcmp(product_,iRHS.product_);
               if( 0!= comp) {
                  return comp <0;
               }
               comp = std::strcmp(process_,iRHS.process_);
               return comp <0;
            }
const char* fwlite::internal::DataKey::process ( ) const [inline]

Definition at line 71 of file InternalDataKey.h.

References process_.

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

{return process_;}
const char* fwlite::internal::DataKey::product ( ) const [inline]

Definition at line 70 of file InternalDataKey.h.

References product_.

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

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

Definition at line 72 of file InternalDataKey.h.

References type_.

{return type_;}

Member Data Documentation

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

Definition at line 76 of file InternalDataKey.h.

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

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

Definition at line 78 of file InternalDataKey.h.

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

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

Definition at line 77 of file InternalDataKey.h.

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

Definition at line 75 of file InternalDataKey.h.

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