IsolationEstimator Class Template Reference

#include <IsolationEstimators.hh>

Inheritance diagram for IsolationEstimator:

Inheritance graph
[legend]

List of all members.


Detailed Description

template<typename T, typename C>
class Rivet::IsolationEstimator< T, C >

Definition at line 16 of file IsolationEstimators.hh.


Public Member Functions

virtual ~IsolationEstimator ()
virtual double estimate (const T &t, const C &c) const =0
virtual int compare (const IsolationEstimator< T, C > *other) const =0
virtual bool before (const IsolationEstimator *other) const
bool operator< (const IsolationEstimator &other) const

Constructor & Destructor Documentation

virtual ~IsolationEstimator (  )  [inline, virtual]

Definition at line 20 of file IsolationEstimators.hh.

00020 {};


Member Function Documentation

virtual double estimate ( const T &  t,
const C &  c 
) const [pure virtual]

virtual int compare ( const IsolationEstimator< T, C > *  other  )  const [pure virtual]

virtual bool before ( const IsolationEstimator< T, C > *  other  )  const [inline, virtual]

Definition at line 26 of file IsolationEstimators.hh.

References IsolationEstimator::compare().

Referenced by IsolationEstimator::operator<().

00026                                                                   {
00027         const std::type_info & thisid = typeid(*this);
00028         const std::type_info & otherid = typeid(*other);
00029         if (thisid == otherid) {
00030           return compare(other) < 0;
00031         } else {
00032           return thisid.before(otherid);
00033         }
00034       }

bool operator< ( const IsolationEstimator< T, C > &  other  )  const [inline]

Definition at line 36 of file IsolationEstimators.hh.

References IsolationEstimator::before().

00036                                                              {
00037         return this->before(&other);
00038       }


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