CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Member Functions | Private Attributes
pat::eventhypothesis::RoleRegexpFilter Class Reference

#include <EventHypothesis.h>

Inheritance diagram for pat::eventhypothesis::RoleRegexpFilter:
pat::eventhypothesis::ParticleFilter

Public Member Functions

virtual bool operator() (const CandRefType &cand, const std::string &role) const
 
 RoleRegexpFilter (const std::string &roleRegexp)
 
- Public Member Functions inherited from pat::eventhypothesis::ParticleFilter
bool operator() (const std::pair< std::string, CandRefType > &p) const
 
virtual ~ParticleFilter ()
 

Private Attributes

boost::regex re_
 

Detailed Description

Definition at line 120 of file EventHypothesis.h.

Constructor & Destructor Documentation

pat::eventhypothesis::RoleRegexpFilter::RoleRegexpFilter ( const std::string &  roleRegexp)
inlineexplicit

Definition at line 122 of file EventHypothesis.h.

122 : re_(roleRegexp) {}

Member Function Documentation

virtual bool pat::eventhypothesis::RoleRegexpFilter::operator() ( const CandRefType cand,
const std::string &  role 
) const
inlinevirtual

Implements pat::eventhypothesis::ParticleFilter.

Definition at line 123 of file EventHypothesis.h.

References re_.

123  {
124  return boost::regex_match(role, re_);
125  }

Member Data Documentation

boost::regex pat::eventhypothesis::RoleRegexpFilter::re_
private

Definition at line 127 of file EventHypothesis.h.

Referenced by operator()().