ThePEG::Matcher< T > Class Template Reference

Matcher is a templated class inheriting from MatcherBase. More...

#include <Matcher.h>

Inheritance diagram for ThePEG::Matcher< T >:

ThePEG::MatcherBase ThePEG::Interfaced ThePEG::InterfacedBase ThePEG::Base ThePEG::Named ThePEG::Pointer::ReferenceCounted

List of all members.

Special clone and create functions used by the Repository.

virtual PMPtr pmclone () const
 Create and clone Matcher objects.
static PMPtr Create (const string &newName, string antiName)
 Create and clone Matcher objects.

Virtual and static versions of the check functions.

virtual bool check (const ParticleData &pd) const
 Virtual function overriding the one in MatcherBase.
static bool Check (const ParticleData &pd)
 Static check function.

Public Member Functions

Standard constructors and destructors.
virtual ~Matcher ()
 Destructor.

Protected Member Functions

void setCC (tPMPtr pm, tPMPtr apm) const
 Set antipartner.
Clone Methods.
virtual IBPtr clone () const
 Make a simple clone of this object.
virtual IBPtr fullclone () const
 Make a clone of this object, possibly modifying the cloned object to make it sane.

Static Private Attributes

static NoPIOClassDescription
< Matcher< T > > 
initMatcher
 The static object used to initialize the description of this class.


Detailed Description

template<class T>
class ThePEG::Matcher< T >

Matcher is a templated class inheriting from MatcherBase.

It is used to conveniently create interfaced classes inheriting from MatcherBase giving a class with a static T::Check() method as template argument.

See also:
MatcherBase

Definition at line 27 of file Matcher.h.


Member Function Documentation

template<class T>
virtual IBPtr ThePEG::Matcher< T >::clone (  )  const [protected, virtual]

Make a simple clone of this object.

Returns:
a pointer to the new object.

Implements ThePEG::InterfacedBase.

template<class T>
virtual IBPtr ThePEG::Matcher< T >::fullclone (  )  const [protected, virtual]

Make a clone of this object, possibly modifying the cloned object to make it sane.

Returns:
a pointer to the new object.

Reimplemented from ThePEG::InterfacedBase.

template<class T>
virtual bool ThePEG::Matcher< T >::check ( const ParticleData pd  )  const [inline, protected, virtual]

Virtual function overriding the one in MatcherBase.

Simply calls Check().

Implements ThePEG::MatcherBase.

Definition at line 76 of file Matcher.h.

template<class T>
static bool ThePEG::Matcher< T >::Check ( const ParticleData pd  )  [inline, static, protected]

Static check function.

Return true if a given particle type, pd, is matched by this Matcher, ie. if the T::Check() function of the template argument returns true.

Definition at line 83 of file Matcher.h.


Member Data Documentation

template<class T>
NoPIOClassDescription< Matcher<T> > ThePEG::Matcher< T >::initMatcher [static, private]

The static object used to initialize the description of this class.

Indicates that this is a concrete class without persistent data.

Definition at line 99 of file Matcher.h.


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

Generated on Thu Apr 29 12:43:17 2010 for ThePEG by  doxygen 1.5.5