HepMC event record
FilterList.cc
Go to the documentation of this file.
1 // -*- C++ -*-
2 //
3 // This file is part of HepMC
4 // Copyright (C) 2014 The HepMC collaboration (see AUTHORS for details)
5 //
6 /**
7  * @file FilterList.cc
8  * @brief Implementation of \b class FilterList
9  *
10  */
11 #include "HepMC/Search/FilterList.h"
12 #include "HepMC/Search/Filter.h"
13 
14 namespace HepMC {
15 
17  m_filters.push_back(f1);
18 }
19 
20 FilterList::FilterList(const Filter &f1, const Filter &f2) {
21  m_filters.push_back(f1); m_filters.push_back(f2);
22 }
23 
25  m_filters.push_back(f);
26  return *this;
27 }
28 
29 FilterList operator&&(const Filter &f1, const Filter &f2) {
30  return FilterList(f1,f2);
31 }
32 
33 } // namespace HepMC
vector< Filter > m_filters
List of filters.
List of filters for the search engine.
Class used to define filters for search engine.
FilterList operator &&(const Filter &f1, const Filter &f2)
Filter AND operator.
Definition: FilterList.cc:29
FilterList & operator &&(const Filter &f)
AND operator.
Definition of template class SmartPointer.