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

#include <Selector.h>

Inheritance diagram for art::ProductInstanceNameSelector:
art::SelectorBase

Public Member Functions

 ProductInstanceNameSelector (std::string const &pin)
 
- 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 pin_
 

Detailed Description

Definition at line 93 of file Selector.h.

Constructor & Destructor Documentation

art::ProductInstanceNameSelector::ProductInstanceNameSelector ( std::string const &  pin)
inlineexplicit

Definition at line 95 of file Selector.h.

95 : pin_{pin} {}

Member Function Documentation

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

Implements art::SelectorBase.

Definition at line 99 of file Selector.h.

100  {
101  return p.productInstanceName() == pin_;
102  }
p
Definition: test.py:223
std::string art::ProductInstanceNameSelector::doPrint ( std::string const &  indent) const
inlineoverrideprivatevirtual

Implements art::SelectorBase.

Definition at line 105 of file Selector.h.

106  {
107  return indent + "Product instance name: '" + pin_ + '\'';
108  }

Member Data Documentation

std::string art::ProductInstanceNameSelector::pin_
private

Definition at line 110 of file Selector.h.


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