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

#include "/cvmfs/nova.opensciencegrid.org/externals/art/v2_13_00/source/art/Framework/Principal/Selector.h"

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

Public Member Functions

 ProductInstanceNameSelector (const std::string &pin)
 
virtual ProductInstanceNameSelectorclone () const override
 
bool match (BranchDescription const &p) const
 

Private Member Functions

virtual bool doMatch (BranchDescription const &p) const override
 

Private Attributes

std::string pin_
 

Detailed Description

Class ProductInstanceNameSelector. Selects EDProducts based upon product instance name.

Definition at line 108 of file Selector.h.

Constructor & Destructor Documentation

art::ProductInstanceNameSelector::ProductInstanceNameSelector ( const std::string pin)
inline

Definition at line 110 of file Selector.h.

110 : pin_(pin) {}

Member Function Documentation

virtual ProductInstanceNameSelector* art::ProductInstanceNameSelector::clone ( ) const
inlineoverridevirtual

Implements art::SelectorBase.

Definition at line 113 of file Selector.h.

114  {
115  return new ProductInstanceNameSelector(*this);
116  }
ProductInstanceNameSelector(const std::string &pin)
Definition: Selector.h:110
virtual bool art::ProductInstanceNameSelector::doMatch ( BranchDescription const &  p) const
inlineoverrideprivatevirtual

Implements art::SelectorBase.

Definition at line 120 of file Selector.h.

References art::BranchDescription::productInstanceName().

121  {
122  return p.productInstanceName() == pin_;
123  }
const char * p
Definition: xmltok.h:285
bool art::SelectorBase::match ( BranchDescription const &  p) const
inlineinherited

Definition at line 23 of file SelectorBase.h.

References art::SelectorBase::clone(), and art::SelectorBase::doMatch().

24  {
25  return doMatch(p);
26  }
const char * p
Definition: xmltok.h:285
virtual bool doMatch(BranchDescription const &p) const =0

Member Data Documentation

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

Definition at line 125 of file Selector.h.


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