CMS 3D CMS Logo

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 fwlite::Record::TypeID

List of all members.

Classes

struct  Def

Public Member Functions

const char * name () const
bool operator< (const TypeIDBase &b) const
bool operator== (const TypeIDBase &b) const
 TypeIDBase (const TypeIDBase &other)
 TypeIDBase ()
 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 30 of file TypeIDBase.h.


Constructor & Destructor Documentation

edm::TypeIDBase::TypeIDBase ( ) [inline]

Definition at line 36 of file TypeIDBase.h.

                   :
         t_(&(typeid(Def))) 
      { }
edm::TypeIDBase::TypeIDBase ( const TypeIDBase other) [inline]

Definition at line 40 of file TypeIDBase.h.

                                          :
         t_(other.t_)
      { }
edm::TypeIDBase::TypeIDBase ( const std::type_info &  t) [inline, explicit]

Definition at line 44 of file TypeIDBase.h.

                                                 :
         t_(&t)
      { }

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.

Reimplemented in edm::eventsetup::heterocontainer::HCTypeTag.

Definition at line 53 of file TypeIDBase.h.

References t_.

{ return t_->name(); }
bool edm::TypeIDBase::operator< ( const TypeIDBase b) const [inline]

Definition at line 55 of file TypeIDBase.h.

References t_.

{ return t_->before(*(b.t_)); }
bool edm::TypeIDBase::operator== ( const TypeIDBase b) const [inline]

Definition at line 56 of file TypeIDBase.h.

References t_.

{ return (*t_) == *(b.t_); }
const std::type_info& edm::TypeIDBase::typeInfo ( ) const [inline, protected]

Member Data Documentation

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

Definition at line 69 of file TypeIDBase.h.

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