LArSoft  v06_85_00
Liquid Argon Software toolkit - http://larsoft.org/
Selector.cc
Go to the documentation of this file.
1 /*----------------------------------------------------------------------
2 
3  ----------------------------------------------------------------------*/
4 
6 
7 namespace art {
8  //------------------------------------------------------------------
9  //
10  // Selector
11  //
12  //------------------------------------------------------------------
13 
14  Selector::Selector(Selector const& other) : sel_(other.sel_->clone()) {}
15 
16  Selector&
18  {
19  Selector temp(other);
20  swap(temp);
21  return *this;
22  }
23 
24  void
26  {
27  using std::swap;
28  swap(sel_, other.sel_);
29  }
30 
32 
33  Selector*
35  {
36  return new Selector(*this);
37  }
38 
39  bool
41  {
42  return sel_->match(prov);
43  }
44 }
Selector(T const &expression)
Definition: Selector.h:341
virtual ~Selector()
Definition: Selector.cc:31
void swap(Selector &other)
Definition: Selector.cc:25
virtual bool doMatch(BranchDescription const &p) const override
Definition: Selector.cc:40
cet::value_ptr< SelectorBase > sel_
Definition: Selector.h:337
HLT enums.
virtual Selector * clone() const override
Definition: Selector.cc:34
Selector & operator=(Selector const &other)&
Definition: Selector.cc:17