CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Member Functions | Static Public Member Functions | Protected Member Functions | Private Attributes
edm::eventsetup::heterocontainer::HCTypeTag Class Reference

#include <HCTypeTag.h>

Inheritance diagram for edm::eventsetup::heterocontainer::HCTypeTag:
edm::TypeIDBase

Public Member Functions

 HCTypeTag ()
 
char const * name () const
 
std::type_info const & value () const
 
- Public Member Functions inherited from edm::TypeIDBase
const char * name () const
 
bool operator< (const TypeIDBase &b) const
 
bool operator== (const TypeIDBase &b) const
 
 TypeIDBase ()
 
 TypeIDBase (const std::type_info &t)
 

Static Public Member Functions

static HCTypeTag findType (char const *iTypeName)
 find a type based on the types name, if not found will return default HCTypeTag More...
 
static HCTypeTag findType (std::string const &iTypeName)
 
template<typename T >
static HCTypeTag make ()
 

Protected Member Functions

 HCTypeTag (std::type_info const &iValue, char const *iName)
 
 HCTypeTag (TypeIDBase const &iValue, const char *iName)
 
- Protected Member Functions inherited from edm::TypeIDBase
const std::type_info & typeInfo () const
 

Private Attributes

char const * m_name
 

Detailed Description

Definition at line 38 of file HCTypeTag.h.

Constructor & Destructor Documentation

edm::eventsetup::heterocontainer::HCTypeTag::HCTypeTag ( )
inline

Definition at line 44 of file HCTypeTag.h.

Referenced by findType(), and make().

edm::eventsetup::heterocontainer::HCTypeTag::HCTypeTag ( std::type_info const &  iValue,
char const *  iName 
)
inlineprotected

Definition at line 64 of file HCTypeTag.h.

64  :
65  TypeIDBase(iValue), m_name(iName) {}
edm::eventsetup::heterocontainer::HCTypeTag::HCTypeTag ( TypeIDBase const &  iValue,
const char *  iName 
)
inlineprotected

Definition at line 67 of file HCTypeTag.h.

67  :
68  TypeIDBase(iValue), m_name(iName) {}

Member Function Documentation

HCTypeTag edm::eventsetup::heterocontainer::HCTypeTag::findType ( char const *  iTypeName)
static

find a type based on the types name, if not found will return default HCTypeTag

Definition at line 129 of file HCTypeTag.cc.

References edm::typelookup::findType(), HCTypeTag(), and AlCaHLTBitMon_ParallelJobs::p.

Referenced by edmtest::DQMSummaryEventSetupAnalyzer::analyze(), edmtest::FillInfoESAnalyzer::analyze(), edmtest::L1TriggerScalerESAnalyzer::analyze(), edmtest::RunInfoESAnalyzer::analyze(), edmtest::RunSummaryESAnalyzer::analyze(), L1RCTChannelMaskTester::analyze(), DTKeyedConfigDBDump::analyze(), ESDaqInfoTask::beginLuminosityBlock(), RPCDaqInfo::beginLuminosityBlock(), DQMDaqInfo::beginLuminosityBlock(), SiStripFedCablingReader::beginRun(), RPCDCSSummary::beginRun(), RPCDataCertification::beginRun(), RPCEventSummary::beginRun(), edmtest::DQMXMLFileEventSetupAnalyzer::beginRun(), edmtest::DQMReferenceHistogramRootFileEventSetupAnalyzer::beginRun(), QualityTester::beginRun(), SiStripDaqInfo::beginRun(), SiStripCertificationInfo::beginRun(), SiStripDcsInfo::beginRun(), SiStripOfflineDQM::beginRun(), CondDBESSource::CondDBESSource(), edm::EmptyESSource::delaySettingRecords(), edm::eventsetup::determinePreferred(), edm::EventSetupRecordDataGetter::doGet(), SiPixelDaqInfo::endLuminosityBlock(), SiPixelDcsInfo::endLuminosityBlock(), HcalDAQInfo::endLuminosityBlock(), SiPixelDcsInfo::endRun(), SiPixelDaqInfo::endRun(), l1t::DataManager::findType(), and findType().

130  {
131  std::pair<const char*,const std::type_info*> p = typelookup::findType(iTypeName);
132 
133  if(0 == p.second) {
134  return HCTypeTag();
135  }
136  //need to take name from the 'findType' since that address is guaranteed to be long lived
137  return HCTypeTag(*p.second, p.first);
138  }
std::pair< const char *, const std::type_info * > findType(const char *iClassName)
Definition: typelookup.cc:51
HCTypeTag edm::eventsetup::heterocontainer::HCTypeTag::findType ( std::string const &  iTypeName)
static

Definition at line 124 of file HCTypeTag.cc.

References findType().

124  {
125  return HCTypeTag::findType(iTypeName.c_str());
126  }
static HCTypeTag findType(char const *iTypeName)
find a type based on the types name, if not found will return default HCTypeTag
Definition: HCTypeTag.cc:129
template<typename T >
static HCTypeTag edm::eventsetup::heterocontainer::HCTypeTag::make ( )
inlinestatic

Definition at line 58 of file HCTypeTag.h.

References HCTypeTag().

58  {
59  return HCTypeTag(typelookup::classTypeInfo<T>(),typelookup::className<T>());
60  }
char const* edm::eventsetup::heterocontainer::HCTypeTag::name ( void  ) const
inline
std::type_info const& edm::eventsetup::heterocontainer::HCTypeTag::value ( ) const
inline

Member Data Documentation

char const* edm::eventsetup::heterocontainer::HCTypeTag::m_name
private

Definition at line 83 of file HCTypeTag.h.

Referenced by name().