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

#include "/cvmfs/nova.opensciencegrid.org/externals/canvas/v3_06_01/source/canvas/Persistency/Provenance/TypeLabel.h"

Public Member Functions

 TypeLabel (TypeID const &itemtype, std::string const &instanceName, bool const supportsView, bool const transient)
 
 TypeLabel (TypeID const &itemtype, std::string const &instanceName, bool const supportsView, std::string emulatedModule)
 
auto const & typeID () const
 
std::string className () const
 
std::string friendlyClassName () const
 
std::string const & emulatedModule () const
 
std::string const & productInstanceName () const
 
bool hasEmulatedModule () const
 
bool supportsView () const
 
bool transient () const
 

Private Attributes

TypeID typeID_
 
std::string productInstanceName_
 
bool supportsView_
 
bool transient_ {false}
 
std::shared_ptr< std::stringemulatedModule_
 

Friends

bool operator< (TypeLabel const &a, TypeLabel const &b)
 
std::ostream & operator<< (std::ostream &os, TypeLabel const &tl)
 

Detailed Description

Definition at line 22 of file TypeLabel.h.

Constructor & Destructor Documentation

art::TypeLabel::TypeLabel ( TypeID const &  itemtype,
std::string const &  instanceName,
bool const  supportsView,
bool const  transient 
)
art::TypeLabel::TypeLabel ( TypeID const &  itemtype,
std::string const &  instanceName,
bool const  supportsView,
std::string  emulatedModule 
)

Member Function Documentation

std::string art::TypeLabel::className ( ) const
inline

Definition at line 40 of file TypeLabel.h.

References art::TypeID::className(), string, and typeID_.

41  {
42  return typeID_.className();
43  }
std::string className() const
TypeID typeID_
Definition: TypeLabel.h:72
std::string const& art::TypeLabel::emulatedModule ( ) const

Referenced by friendlyClassName().

std::string art::TypeLabel::friendlyClassName ( ) const
inline

Definition at line 45 of file TypeLabel.h.

References emulatedModule(), art::TypeID::friendlyClassName(), string, and typeID_.

Referenced by art::ProductRegistryHelper::insertOrThrow().

46  {
47  return typeID_.friendlyClassName();
48  }
std::string friendlyClassName() const
TypeID typeID_
Definition: TypeLabel.h:72
bool art::TypeLabel::hasEmulatedModule ( ) const
inline

Definition at line 56 of file TypeLabel.h.

References emulatedModule_.

57  {
58  return static_cast<bool>(emulatedModule_);
59  }
std::shared_ptr< std::string > emulatedModule_
Definition: TypeLabel.h:76
std::string const& art::TypeLabel::productInstanceName ( ) const
inline

Definition at line 51 of file TypeLabel.h.

References productInstanceName_.

Referenced by art::ProductRegistryHelper::insertOrThrow().

52  {
53  return productInstanceName_;
54  }
std::string productInstanceName_
Definition: TypeLabel.h:73
bool art::TypeLabel::supportsView ( ) const
inline

Definition at line 61 of file TypeLabel.h.

References supportsView_.

62  {
63  return supportsView_;
64  }
bool supportsView_
Definition: TypeLabel.h:74
bool art::TypeLabel::transient ( ) const
inline

Definition at line 66 of file TypeLabel.h.

References transient_.

67  {
68  return transient_;
69  }
bool transient_
Definition: TypeLabel.h:75
auto const& art::TypeLabel::typeID ( ) const
inline

Definition at line 35 of file TypeLabel.h.

References string, and typeID_.

36  {
37  return typeID_;
38  }
TypeID typeID_
Definition: TypeLabel.h:72

Friends And Related Function Documentation

bool operator< ( TypeLabel const &  a,
TypeLabel const &  b 
)
friend
std::ostream& operator<< ( std::ostream &  os,
TypeLabel const &  tl 
)
friend

Member Data Documentation

std::shared_ptr<std::string> art::TypeLabel::emulatedModule_
private
Initial value:
{
nullptr}

Definition at line 76 of file TypeLabel.h.

Referenced by hasEmulatedModule().

std::string art::TypeLabel::productInstanceName_
private

Definition at line 73 of file TypeLabel.h.

Referenced by productInstanceName().

bool art::TypeLabel::supportsView_
private

Definition at line 74 of file TypeLabel.h.

Referenced by supportsView().

bool art::TypeLabel::transient_ {false}
private

Definition at line 75 of file TypeLabel.h.

Referenced by transient().

TypeID art::TypeLabel::typeID_
private

Definition at line 72 of file TypeLabel.h.

Referenced by className(), friendlyClassName(), and typeID().


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