NuVPTreePID< T, distance >::HeapItem Struct Reference

List of all members.

Public Member Functions

 HeapItem (int index, double dist)
bool operator< (const HeapItem &o) const

Public Attributes

int index
double dist

Detailed Description

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

Definition at line 71 of file NuVPTreePID.h.


Constructor & Destructor Documentation

template<typename T, double(*)(const T &, const T &) distance>
NuVPTreePID< T, distance >::HeapItem::HeapItem ( int  index,
double  dist 
) [inline]

Definition at line 72 of file NuVPTreePID.h.

00072                                       :
00073       index(index), dist(dist) {}
    int index;


Member Function Documentation

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

Definition at line 76 of file NuVPTreePID.h.

References NuVPTreePID< T, distance >::HeapItem::dist.

00076                                               {
00077       return dist < o.dist;
00078     }


Member Data Documentation

template<typename T, double(*)(const T &, const T &) distance>
double NuVPTreePID< T, distance >::HeapItem::dist

Definition at line 75 of file NuVPTreePID.h.

Referenced by NuVPTreePID< T, distance >::HeapItem::operator<().

template<typename T, double(*)(const T &, const T &) distance>
int NuVPTreePID< T, distance >::HeapItem::index

Definition at line 74 of file NuVPTreePID.h.


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

Generated on 16 Apr 2018 for loon by  doxygen 1.6.1