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

#include <Selector.h>

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

Public Member Functions

 ModuleLabelSelector (std::string const &label)
 
- Public Member Functions inherited from art::SelectorBase
virtual ~SelectorBase ()=default
 
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 118 of file Selector.h.

Constructor & Destructor Documentation

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

Definition at line 120 of file Selector.h.

120 : label_{label} {}

Member Function Documentation

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

Implements art::SelectorBase.

Definition at line 124 of file Selector.h.

125  {
126  return p.moduleLabel() == label_;
127  }
p
Definition: test.py:223
std::string art::ModuleLabelSelector::doPrint ( std::string const &  indent) const
inlineoverrideprivatevirtual

Implements art::SelectorBase.

Definition at line 130 of file Selector.h.

131  {
132  return indent + "Module label: '" + label_ + '\'';
133  }

Member Data Documentation

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

Definition at line 135 of file Selector.h.


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