NuVPTreePID< T, distance >::DistanceComparator Struct Reference

List of all members.

Public Member Functions

 DistanceComparator (const T &item)
bool operator() (const T &a, const T &b)

Public Attributes

const T & item

Detailed Description

template<typename T, double(*)(const T &, const T &) distance>
struct NuVPTreePID< T, distance >::DistanceComparator

Definition at line 81 of file NuVPTreePID.h.


Constructor & Destructor Documentation

template<typename T, double(*)(const T &, const T &) distance>
NuVPTreePID< T, distance >::DistanceComparator::DistanceComparator ( const T &  item  )  [inline]

Definition at line 84 of file NuVPTreePID.h.

00084 : item(item) {}


Member Function Documentation

template<typename T, double(*)(const T &, const T &) distance>
bool NuVPTreePID< T, distance >::DistanceComparator::operator() ( const T &  a,
const T &  b 
) [inline]

Definition at line 85 of file NuVPTreePID.h.

References NuVPTreePID< T, distance >::DistanceComparator::item.

00085                                             {
00086       return distance( item, a ) < distance( item, b );
00087     }


Member Data Documentation

template<typename T, double(*)(const T &, const T &) distance>
const T& NuVPTreePID< T, distance >::DistanceComparator::item

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

Generated on 17 Jun 2018 for loon by  doxygen 1.6.1