Gaudi::Utils::RegEx::matchList Class Reference

#include </scratch/z5/marcocle/GaudiDocs/lhcb-release/996/GAUDI/GAUDI_v26r4/InstallArea/x86_64-slc6-gcc48-opt/include/GaudiUtils/RegEx.h>

Collaboration diagram for Gaudi::Utils::RegEx::matchList:

Public Member Functions

template<typename C >
 matchList (const C &c)
 
bool Or (const std::string &test) const
 
bool And (const std::string &test) const
 
template<typename C >
 matchList (const C &c)
 
bool Or (const std::string &test) const
 
bool And (const std::string &test) const
 

Private Attributes

std::vector< boost::regex > m_regs
 

Detailed Description

Definition at line 27 of file RegEx.h.

Constructor & Destructor Documentation

template<typename C >
Gaudi::Utils::RegEx::matchList::matchList ( const C &  c)
inline

Definition at line 30 of file RegEx.h.

30  {
31  m_regs.reserve(c.size());
32  std::transform( std::begin(c), std::end(c),
33  std::back_inserter(m_regs),
34  [](typename C::const_reference i) { return boost::regex{i}; } );
35  }
tuple c
Definition: gaudirun.py:392
auto begin(reverse_wrapper< T > &w)
Definition: reverse.h:45
std::vector< boost::regex > m_regs
Definition: RegEx.h:28
auto end(reverse_wrapper< T > &w)
Definition: reverse.h:47
list i
Definition: ana.py:128
template<typename C >
Gaudi::Utils::RegEx::matchList::matchList ( const C &  c)
inline

Definition at line 30 of file RegEx.h.

30  {
31  m_regs.reserve(c.size());
32  std::transform( std::begin(c), std::end(c),
33  std::back_inserter(m_regs),
34  [](typename C::const_reference i) { return boost::regex{i}; } );
35  }
tuple c
Definition: gaudirun.py:392
auto begin(reverse_wrapper< T > &w)
Definition: reverse.h:45
std::vector< boost::regex > m_regs
Definition: RegEx.h:28
auto end(reverse_wrapper< T > &w)
Definition: reverse.h:47
list i
Definition: ana.py:128

Member Function Documentation

bool Gaudi::Utils::RegEx::matchList::And ( const std::string &  test) const
inline

Definition at line 43 of file RegEx.h.

43  {
44  return std::all_of( std::begin(m_regs), std::end(m_regs),
45  [&](const boost::regex& r) {
46  return boost::regex_match(test, r);
47  });
48  }
auto begin(reverse_wrapper< T > &w)
Definition: reverse.h:45
std::vector< boost::regex > m_regs
Definition: RegEx.h:28
auto end(reverse_wrapper< T > &w)
Definition: reverse.h:47
bool Gaudi::Utils::RegEx::matchList::And ( const std::string &  test) const
inline

Definition at line 43 of file RegEx.h.

43  {
44  return std::all_of( std::begin(m_regs), std::end(m_regs),
45  [&](const boost::regex& r) {
46  return boost::regex_match(test, r);
47  });
48  }
auto begin(reverse_wrapper< T > &w)
Definition: reverse.h:45
std::vector< boost::regex > m_regs
Definition: RegEx.h:28
auto end(reverse_wrapper< T > &w)
Definition: reverse.h:47
bool Gaudi::Utils::RegEx::matchList::Or ( const std::string &  test) const
inline

Definition at line 37 of file RegEx.h.

37  {
38  return std::any_of( std::begin(m_regs), std::end(m_regs),
39  [&](const boost::regex& r) {
40  return boost::regex_match(test, r);
41  });
42  }
auto begin(reverse_wrapper< T > &w)
Definition: reverse.h:45
std::vector< boost::regex > m_regs
Definition: RegEx.h:28
auto end(reverse_wrapper< T > &w)
Definition: reverse.h:47
bool Gaudi::Utils::RegEx::matchList::Or ( const std::string &  test) const
inline

Definition at line 37 of file RegEx.h.

37  {
38  return std::any_of( std::begin(m_regs), std::end(m_regs),
39  [&](const boost::regex& r) {
40  return boost::regex_match(test, r);
41  });
42  }
auto begin(reverse_wrapper< T > &w)
Definition: reverse.h:45
std::vector< boost::regex > m_regs
Definition: RegEx.h:28
auto end(reverse_wrapper< T > &w)
Definition: reverse.h:47

Member Data Documentation

std::vector< boost::regex > Gaudi::Utils::RegEx::matchList::m_regs
private

Definition at line 28 of file RegEx.h.


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