CMS 3D CMS Logo

List of all members | Classes | Public Member Functions | Protected Member Functions | Private Attributes
edm::TypeIDBase Class Reference

#include <TypeIDBase.h>

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

Classes

struct  Def
 

Public Member Functions

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)
 

Protected Member Functions

const std::type_info & typeInfo () const
 

Private Attributes

const std::type_info * t_
 

Detailed Description

Definition at line 29 of file TypeIDBase.h.

Constructor & Destructor Documentation

edm::TypeIDBase::TypeIDBase ( )
inline

Definition at line 33 of file TypeIDBase.h.

33 : t_(&(typeid(Def))) {}
const std::type_info * t_
Definition: TypeIDBase.h:59
edm::TypeIDBase::TypeIDBase ( const std::type_info &  t)
inlineexplicit

Definition at line 35 of file TypeIDBase.h.

35 : t_(&t) {}
const std::type_info * t_
Definition: TypeIDBase.h:59
edm::TypeIDBase::TypeIDBase ( const std::type_info *  t)
inlineexplicit

Definition at line 37 of file TypeIDBase.h.

37 : t_(t == nullptr ? &(typeid(Def)) : t) {}
const std::type_info * t_
Definition: TypeIDBase.h:59

Member Function Documentation

const char* edm::TypeIDBase::name ( void  ) const
inline

Returned C-style string owned by system; do not delete[] it. This is the (horrible, mangled, platform-dependent) name of the type.

Definition at line 44 of file TypeIDBase.h.

References t_.

Referenced by config.CFG::__str__(), validation.Sample::digest(), VIDSelectorBase.VIDSelectorBase::initialize(), edm::TypeIDHasher::operator()(), edm::BranchDescription::setSwitchAliasForBranch(), and edm::TypeID::TypeID().

44 { return t_->name(); }
const std::type_info * t_
Definition: TypeIDBase.h:59
bool edm::TypeIDBase::operator< ( const TypeIDBase b) const
inline

Definition at line 46 of file TypeIDBase.h.

References t_.

Referenced by edm::TypeID::operator<().

46 { return t_->before(*(b.t_)); }
const std::type_info * t_
Definition: TypeIDBase.h:59
bool edm::TypeIDBase::operator== ( const TypeIDBase b) const
inline

Definition at line 47 of file TypeIDBase.h.

References t_.

Referenced by edm::TypeID::operator==().

47 { return (*t_) == *(b.t_); }
const std::type_info * t_
Definition: TypeIDBase.h:59
const std::type_info& edm::TypeIDBase::typeInfo ( ) const
inlineprotected

Member Data Documentation

const std::type_info* edm::TypeIDBase::t_
private

Definition at line 59 of file TypeIDBase.h.

Referenced by name(), operator<(), operator==(), and typeInfo().