ATLAS Offline Software
Public Member Functions | Private Attributes | List of all members
ObjectMatching::DistanceCompare< T, U > Class Template Reference
Collaboration diagram for ObjectMatching::DistanceCompare< T, U >:

Public Member Functions

 DistanceCompare (const U *baseObject, const DistanceFunctor< T, U > *m)
 
virtual bool operator() (const T *x, const T *y)
 

Private Attributes

const U * m_baseObject
 
const DistanceFunctor< T, U > * m_metric
 

Detailed Description

template<typename T, typename U>
class ObjectMatching::DistanceCompare< T, U >

Definition at line 138 of file ObjectMatching.h.

Constructor & Destructor Documentation

◆ DistanceCompare()

template<typename T , typename U >
ObjectMatching::DistanceCompare< T, U >::DistanceCompare ( const U *  baseObject,
const DistanceFunctor< T, U > *  m 
)
inline

Definition at line 140 of file ObjectMatching.h.

140  {
141  m_metric = m;
142  m_baseObject = baseObject;
143  }

Member Function Documentation

◆ operator()()

template<typename T , typename U >
virtual bool ObjectMatching::DistanceCompare< T, U >::operator() ( const T *  x,
const T *  y 
)
inlinevirtual

Definition at line 144 of file ObjectMatching.h.

144  {
145  // see Control/CxxUtils/fpcompare.h for explanation of
146  // why this is required
148  (*m_metric)(y,m_baseObject));
149  };

Member Data Documentation

◆ m_baseObject

template<typename T , typename U >
const U* ObjectMatching::DistanceCompare< T, U >::m_baseObject
private

Definition at line 151 of file ObjectMatching.h.

◆ m_metric

template<typename T , typename U >
const DistanceFunctor<T, U>* ObjectMatching::DistanceCompare< T, U >::m_metric
private

Definition at line 152 of file ObjectMatching.h.


The documentation for this class was generated from the following file:
python.SystemOfUnits.m
int m
Definition: SystemOfUnits.py:91
x
#define x
ObjectMatching::DistanceCompare::m_metric
const DistanceFunctor< T, U > * m_metric
Definition: ObjectMatching.h:152
ObjectMatching::DistanceCompare::m_baseObject
const U * m_baseObject
Definition: ObjectMatching.h:149
CxxUtils::fpcompare::less
bool less(double a, double b)
Compare two FP numbers, working around x87 precision issues.
Definition: fpcompare.h:166
y
#define y