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

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

Public Member Functions

 InputTag ()=default
 
 InputTag (std::string const &s)
 
 InputTag (char const *s)
 
 InputTag (std::string const &label, std::string const &instance, std::string const &processName={})
 
 InputTag (char const *label, char const *instance, char const *processName="")
 
std::string encode () const
 
bool empty () const noexcept
 
std::string const & label () const noexcept
 
std::string const & instance () const noexcept
 
std::string const & process () const noexcept
 
bool operator== (InputTag const &tag) const noexcept
 

Private Member Functions

void set_from_string_ (std::string const &s)
 

Private Attributes

std::string label_ {}
 
std::string instance_ {}
 
std::string process_ {}
 

Detailed Description

Definition at line 18 of file InputTag.h.

Constructor & Destructor Documentation

art::InputTag::InputTag ( )
default
art::InputTag::InputTag ( std::string const &  s)
inline

Definition at line 96 of file InputTag.h.

References set_from_string_().

97 {
99 }
void set_from_string_(std::string const &s)
const XML_Char * s
Definition: expat.h:262
art::InputTag::InputTag ( char const *  s)
inline

Definition at line 101 of file InputTag.h.

References set_from_string_().

102 {
104 }
void set_from_string_(std::string const &s)
const XML_Char * s
Definition: expat.h:262
art::InputTag::InputTag ( std::string const &  label,
std::string const &  instance,
std::string const &  processName = {} 
)
inline

Definition at line 84 of file InputTag.h.

87  : label_(label), instance_(instance), process_(processName)
88 {}
std::string label_
Definition: InputTag.h:75
std::string process_
Definition: InputTag.h:77
std::string const & instance() const noexcept
Definition: InputTag.h:60
std::string const & label() const noexcept
Definition: InputTag.h:55
std::string instance_
Definition: InputTag.h:76
art::InputTag::InputTag ( char const *  label,
char const *  instance,
char const *  processName = "" 
)
inline

Definition at line 90 of file InputTag.h.

93  : label_(label), instance_(instance), process_(processName)
94 {}
std::string label_
Definition: InputTag.h:75
std::string process_
Definition: InputTag.h:77
std::string const & instance() const noexcept
Definition: InputTag.h:60
std::string const & label() const noexcept
Definition: InputTag.h:55
std::string instance_
Definition: InputTag.h:76

Member Function Documentation

bool art::InputTag::empty ( ) const
inlinenoexcept

Definition at line 49 of file InputTag.h.

References string.

50  {
51  return label_.empty() && instance_.empty() && process_.empty();
52  }
std::string label_
Definition: InputTag.h:75
std::string process_
Definition: InputTag.h:77
std::string instance_
Definition: InputTag.h:76
std::string art::InputTag::encode ( ) const
std::string const& art::InputTag::instance ( ) const
inlinenoexcept
std::string const& art::InputTag::label ( ) const
inlinenoexcept
bool art::InputTag::operator== ( InputTag const &  tag) const
inlinenoexcept

Definition at line 107 of file InputTag.h.

References instance_, label_, process_, and getGoodRuns4SAM::tag.

108 {
109  return (label_ == tag.label_) && (instance_ == tag.instance_) &&
110  (process_ == tag.process_);
111 }
std::string label_
Definition: InputTag.h:75
std::string process_
Definition: InputTag.h:77
std::string instance_
Definition: InputTag.h:76
std::string const& art::InputTag::process ( ) const
inlinenoexcept

an empty string means find the most recently produced product with the label and instance

Definition at line 67 of file InputTag.h.

References operator==(), and getGoodRuns4SAM::tag.

Referenced by art::Consumer::consumes(), art::Consumer::consumesView(), daq2raw::getBranchName(), art::DataViewImpl::getByLabel(), art::DataViewImpl::getView(), art::Consumer::mayConsume(), and art::Consumer::mayConsumeView().

68  {
69  return process_;
70  }
std::string process_
Definition: InputTag.h:77
void art::InputTag::set_from_string_ ( std::string const &  s)
private

Referenced by InputTag().

Member Data Documentation

std::string art::InputTag::instance_ {}
private

Definition at line 76 of file InputTag.h.

Referenced by operator==().

std::string art::InputTag::label_ {}
private

Definition at line 75 of file InputTag.h.

Referenced by operator==().

std::string art::InputTag::process_ {}
private

Definition at line 77 of file InputTag.h.

Referenced by operator==().


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