LArSoft  v07_13_02
Liquid Argon Software toolkit - http://larsoft.org/
art::Selector Class Reference

#include "Selector.h"

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

Public Member Functions

template<class T >
 Selector (T const &expression)
 
 Selector (Selector const &other)
 
Selectoroperator= (Selector const &other)&
 
void swap (Selector &other)
 
virtual ~Selector ()
 
virtual Selectorclone () const override
 
bool match (BranchDescription const &p) const
 

Private Member Functions

virtual bool doMatch (BranchDescription const &p) const override
 

Private Attributes

cet::value_ptr< SelectorBasesel_
 

Detailed Description

Definition at line 324 of file Selector.h.

Constructor & Destructor Documentation

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

Definition at line 341 of file Selector.h.

Referenced by clone().

342  : sel_(new ComposedSelectorWrapper<T>(expression))
343 {}
cet::value_ptr< SelectorBase > sel_
Definition: Selector.h:337
art::Selector::Selector ( Selector const &  other)

Definition at line 14 of file Selector.cc.

14 : sel_(other.sel_->clone()) {}
cet::value_ptr< SelectorBase > sel_
Definition: Selector.h:337
art::Selector::~Selector ( )
virtual

Definition at line 31 of file Selector.cc.

31 {}

Member Function Documentation

Selector * art::Selector::clone ( ) const
overridevirtual

Implements art::SelectorBase.

Definition at line 34 of file Selector.cc.

References Selector().

35  {
36  return new Selector(*this);
37  }
Selector(T const &expression)
Definition: Selector.h:341
bool art::Selector::doMatch ( BranchDescription const &  p) const
overrideprivatevirtual

Implements art::SelectorBase.

Definition at line 40 of file Selector.cc.

References sel_.

41  {
42  return sel_->match(prov);
43  }
cet::value_ptr< SelectorBase > sel_
Definition: Selector.h:337
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().

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

24  {
25  return doMatch(p);
26  }
virtual bool doMatch(BranchDescription const &p) const =0
Selector & art::Selector::operator= ( Selector const &  other)

Definition at line 17 of file Selector.cc.

References fhicl::other, and swap().

18  {
19  Selector temp(other);
20  swap(temp);
21  return *this;
22  }
Selector(T const &expression)
Definition: Selector.h:341
void swap(Selector &other)
Definition: Selector.cc:25
void art::Selector::swap ( Selector other)

Definition at line 25 of file Selector.cc.

References sel_.

Referenced by operator=().

26  {
27  using std::swap;
28  swap(sel_, other.sel_);
29  }
void swap(Selector &other)
Definition: Selector.cc:25
cet::value_ptr< SelectorBase > sel_
Definition: Selector.h:337
void swap(art::HLTGlobalStatus &lhs, art::HLTGlobalStatus &rhs)

Member Data Documentation

cet::value_ptr<SelectorBase> art::Selector::sel_
private

Definition at line 337 of file Selector.h.

Referenced by doMatch(), and swap().


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