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

#include "Selector.h"

Inheritance diagram for art::Selector:
art::SelectorBase

Public Member Functions

template<typename T >
 Selector (T const &expression)
 
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::shared_ptr< SelectorBasesel_
 

Detailed Description

Definition at line 374 of file Selector.h.

Constructor & Destructor Documentation

template<typename T >
art::Selector::Selector ( T const &  expression)
inlineexplicit

Definition at line 377 of file Selector.h.

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

378  : sel_{new ComposedSelectorWrapper<T>{expression}}
379  {}
std::shared_ptr< SelectorBase > sel_
Definition: Selector.h:385

Member Function Documentation

bool art::Selector::doMatch ( BranchDescription const &  p) const
overrideprivatevirtual

Implements art::SelectorBase.

Definition at line 7 of file Selector.cc.

References sel_.

8  {
9  return sel_->match(prov);
10  }
std::shared_ptr< SelectorBase > sel_
Definition: Selector.h:385
std::string art::Selector::doPrint ( std::string const &  indent) const
overrideprivatevirtual

Implements art::SelectorBase.

Definition at line 13 of file Selector.cc.

References sel_.

14  {
15  return sel_->print(indent);
16  }
std::shared_ptr< SelectorBase > sel_
Definition: Selector.h:385
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::shared_ptr<SelectorBase> art::Selector::sel_
private

Definition at line 385 of file Selector.h.

Referenced by doMatch(), and doPrint().


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