CMS 3D CMS Logo

List of all members | Public Member Functions
edm::TypeID Class Reference

#include <TypeID.h>

Inheritance diagram for edm::TypeID:
edm::TypeIDBase

Public Member Functions

std::string const & className () const
 
std::string friendlyClassName () const
 
 operator bool () const
 
bool operator< (TypeID const &b) const
 
bool operator== (TypeID const &b) const
 
void print (std::ostream &os) const
 
 TypeID ()
 
 TypeID (std::type_info const &t)
 
template<typename T >
 TypeID (T const &t)
 
std::string userClassName () const
 

Additional Inherited Members

- Private 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)
 
 TypeIDBase (const std::type_info *t)
 
const std::type_info & typeInfo () const
 

Detailed Description

Definition at line 22 of file TypeID.h.

Constructor & Destructor Documentation

edm::TypeID::TypeID ( )
inline

Definition at line 24 of file TypeID.h.

24 : TypeIDBase() {}
edm::TypeID::TypeID ( std::type_info const &  t)
inlineexplicit

Definition at line 26 of file TypeID.h.

template<typename T >
edm::TypeID::TypeID ( T const &  t)
inlineexplicit

Member Function Documentation

std::string const & edm::TypeID::className ( ) const
std::string edm::TypeID::friendlyClassName ( ) const

Definition at line 62 of file TypeID.cc.

References className(), and edm::friendlyname::friendlyName().

Referenced by fwlite::DataGetterHelper::getBranchDataFor(), edm::PrincipalGetAdapter::throwUnregisteredPutException(), and TypeID().

std::string friendlyName(std::string const &iFullName)
std::string const & className() const
Definition: TypeID.cc:43
edm::TypeID::operator bool ( ) const
explicit

Definition at line 118 of file TypeID.cc.

118 { return !(*this == nullTypeID); }
bool edm::TypeID::operator< ( TypeID const &  b) const
inline

Definition at line 44 of file TypeID.h.

References edm::TypeIDBase::operator<().

44 { return this->TypeIDBase::operator<(b); }
bool operator<(const TypeIDBase &b) const
Definition: TypeIDBase.h:46
double b
Definition: hdecay.h:120
bool edm::TypeID::operator== ( TypeID const &  b) const
inline

Definition at line 46 of file TypeID.h.

References edm::TypeIDBase::operator==(), and edm::TypeIDBase::typeInfo().

46 { return this->TypeIDBase::operator==(b); }
bool operator==(const TypeIDBase &b) const
Definition: TypeIDBase.h:47
double b
Definition: hdecay.h:120
void edm::TypeID::print ( std::ostream &  os) const

Definition at line 13 of file TypeID.cc.

References cms::Exception::append(), className(), MillePedeFileConverter_cfg::e, AlCaHLTBitMon_QueryRunRegistry::string, edm::typeDemangle(), and edm::TypeIDBase::typeInfo().

Referenced by TypeID().

13  {
14  try {
15  os << className();
16  } catch (cms::Exception const&) {
17  os << typeInfo().name();
18  }
19  }
const std::type_info & typeInfo() const
Definition: TypeIDBase.h:50
std::string const & className() const
Definition: TypeID.cc:43
std::string edm::TypeID::userClassName ( ) const

Definition at line 54 of file TypeID.cc.

References className(), AlCaHLTBitMon_QueryRunRegistry::string, and edm::stripTemplate().

Referenced by TypeID().

54  {
55  std::string theName = className();
56  if (theName.find("edm::Wrapper") == 0) {
57  stripTemplate(theName);
58  }
59  return theName;
60  }
std::string const & className() const
Definition: TypeID.cc:43
bool stripTemplate(std::string &theName)
Definition: TypeID.cc:64