Public Member Functions | Private Attributes | List of all members
art::TypeID Class Reference

#include "/cvmfs/nova.opensciencegrid.org/externals/canvas/v3_06_01/source/canvas/Utilities/TypeID.h"

Public Member Functions

 TypeID ()=default
 
 TypeID (std::type_info const &)
 
 TypeID (std::type_info const *)
 
template<typename T >
 TypeID (T const &val)
 
void print (std::ostream &) const
 
char const * name () const
 
std::string className () const
 
std::string friendlyClassName () const
 
bool operator< (TypeID const &rhs) const
 
bool operator== (TypeID const &rhs) const
 
 operator bool () const
 
std::type_info const & typeInfo () const
 
void swap (TypeID &other)
 

Private Attributes

std::type_info const * ti_ {nullptr}
 

Detailed Description

Definition at line 39 of file TypeID.h.

Constructor & Destructor Documentation

art::TypeID::TypeID ( )
default
art::TypeID::TypeID ( std::type_info const &  ti)
inlineexplicit

Definition at line 82 of file TypeID.h.

82 : ti_{&ti} {}
std::type_info const * ti_
Definition: TypeID.h:79
art::TypeID::TypeID ( std::type_info const *  ti)
inlineexplicit

Definition at line 84 of file TypeID.h.

84 : ti_{ti} {}
std::type_info const * ti_
Definition: TypeID.h:79
template<typename T >
art::TypeID::TypeID ( T const &  val)
inlineexplicit

Definition at line 87 of file TypeID.h.

References febshutoff_auto::val.

87  : ti_{&typeid(val)}
88 {}
std::type_info const * ti_
Definition: TypeID.h:79

Member Function Documentation

std::string art::TypeID::className ( ) const
std::string art::TypeID::friendlyClassName ( ) const
char const * art::TypeID::name ( ) const
inline
art::TypeID::operator bool ( ) const
inlineexplicit

Definition at line 108 of file TypeID.h.

References ti_.

109 {
110  return ti_ != nullptr;
111 }
std::type_info const * ti_
Definition: TypeID.h:79
bool art::TypeID::operator< ( TypeID const &  rhs) const
inline

Definition at line 97 of file TypeID.h.

References ti_.

98 {
99  return ti_->before(*rhs.ti_);
100 }
std::type_info const * ti_
Definition: TypeID.h:79
bool art::TypeID::operator== ( TypeID const &  rhs) const
inline

Definition at line 103 of file TypeID.h.

References ti_.

104 {
105  return *ti_ == *rhs.ti_;
106 }
std::type_info const * ti_
Definition: TypeID.h:79
void art::TypeID::print ( std::ostream &  ) const
void art::TypeID::swap ( TypeID other)
inline

Definition at line 120 of file TypeID.h.

References std::swap(), and ti_.

Referenced by art::swap().

121 {
122  using std::swap;
123  swap(ti_, other.ti_);
124 }
void swap(art::HLTGlobalStatus &lhs, art::HLTGlobalStatus &rhs)
void swap(TypeID &other)
Definition: TypeID.h:120
std::type_info const * ti_
Definition: TypeID.h:79
std::type_info const & art::TypeID::typeInfo ( ) const
inline

Definition at line 114 of file TypeID.h.

References ti_.

Referenced by art::AssnsGroup::makePartner().

115 {
116  return *ti_;
117 }
std::type_info const * ti_
Definition: TypeID.h:79

Member Data Documentation

std::type_info const* art::TypeID::ti_ {nullptr}
private

Definition at line 79 of file TypeID.h.

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


The documentation for this class was generated from the following file: