LArSoft  v09_90_00
Liquid Argon Software toolkit - https://larsoft.org/
art::ModuleLabelSelector Class Reference

#include "Selector.h"

Inheritance diagram for art::ModuleLabelSelector:
art::SelectorBase

Public Member Functions

 ModuleLabelSelector (std::string const &label)
 
bool match (BranchDescription const &p) const
 
std::string print (std::string const &indent) const
 

Private Member Functions

bool doMatch (BranchDescription const &p) const override
 
std::string doPrint (std::string const &indent) const override
 

Private Attributes

std::string label_
 

Detailed Description

Definition at line 121 of file Selector.h.

Constructor & Destructor Documentation

art::ModuleLabelSelector::ModuleLabelSelector ( std::string const &  label)
inlineexplicit

Definition at line 123 of file Selector.h.

123 : label_{label} {}

Member Function Documentation

bool art::ModuleLabelSelector::doMatch ( BranchDescription const &  p) const
inlineoverrideprivatevirtual

Implements art::SelectorBase.

Definition at line 127 of file Selector.h.

References art::BranchDescription::moduleLabel().

128  {
129  return p.moduleLabel() == label_;
130  }
std::string art::ModuleLabelSelector::doPrint ( std::string const &  indent) const
inlineoverrideprivatevirtual

Implements art::SelectorBase.

Definition at line 133 of file Selector.h.

134  {
135  return indent + "Module label: '" + label_ + '\'';
136  }
std::string indent(std::size_t const i)
bool art::SelectorBase::match ( BranchDescription const &  p) const
inlineinherited

Definition at line 41 of file SelectorBase.h.

References art::SelectorBase::doMatch().

Referenced by art::Principal::findGroupsForProcess().

42  {
43  return doMatch(p);
44  }
virtual bool doMatch(BranchDescription const &p) const =0
std::string art::SelectorBase::print ( std::string const &  indent) const
inlineinherited

Definition at line 47 of file SelectorBase.h.

References art::SelectorBase::doMatch(), art::SelectorBase::doPrint(), and art::detail::indent().

Referenced by art::Principal::getBySelector().

48  {
49  return doPrint(indent);
50  }
std::string indent(std::size_t const i)
virtual std::string doPrint(std::string const &indent) const =0

Member Data Documentation

std::string art::ModuleLabelSelector::label_
private

Definition at line 138 of file Selector.h.


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