CMS 3D CMS Logo

Public Member Functions | Private Attributes

pat::eventhypothesis::RoleRegexpFilter Class Reference

#include <EventHypothesis.h>

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

List of all members.

Public Member Functions

virtual bool operator() (const CandRefType &cand, const std::string &role) const
 RoleRegexpFilter (const std::string &roleRegexp)

Private Attributes

boost::regex re_

Detailed Description

Definition at line 111 of file EventHypothesis.h.


Constructor & Destructor Documentation

pat::eventhypothesis::RoleRegexpFilter::RoleRegexpFilter ( const std::string &  roleRegexp) [inline, explicit]

Definition at line 113 of file EventHypothesis.h.

: re_(roleRegexp) {}

Member Function Documentation

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

Implements pat::eventhypothesis::ParticleFilter.

Definition at line 114 of file EventHypothesis.h.

References re_.

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

Member Data Documentation

Definition at line 118 of file EventHypothesis.h.

Referenced by operator()().