NuKDCompAlongDir< T, D > Class Template Reference

Functor defining an ordering based on distance along one axis. More...

List of all members.

Public Member Functions

 NuKDCompAlongDir (unsigned int _d)
bool operator() (const NuKDPtWithPayload< T, D > &a, const NuKDPtWithPayload< T, D > &b) const

Protected Attributes

unsigned int d

Detailed Description

template<class T, unsigned int D>
class NuKDCompAlongDir< T, D >

Functor defining an ordering based on distance along one axis.

Definition at line 133 of file NuKDTree.cxx.


Constructor & Destructor Documentation

template<class T, unsigned int D>
NuKDCompAlongDir< T, D >::NuKDCompAlongDir ( unsigned int  _d  )  [inline]

Definition at line 136 of file NuKDTree.cxx.

00136 : d(_d) {}


Member Function Documentation

template<class T, unsigned int D>
bool NuKDCompAlongDir< T, D >::operator() ( const NuKDPtWithPayload< T, D > &  a,
const NuKDPtWithPayload< T, D > &  b 
) const [inline]

Definition at line 137 of file NuKDTree.cxx.

References NuKDCompAlongDir< T, D >::d, and NuKDPtWithPayload< T, D >::pt.

00139   {
00140     return a.pt[d] < b.pt[d];
00141   }


Member Data Documentation

template<class T, unsigned int D>
unsigned int NuKDCompAlongDir< T, D >::d [protected]

Definition at line 143 of file NuKDTree.cxx.

Referenced by NuKDCompAlongDir< T, D >::operator()().


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

Generated on 16 Apr 2018 for loon by  doxygen 1.6.1