Main Page | Modules | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

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 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.


The documentation for this class was generated from the following file:
Generated on Mon Feb 15 11:09:53 2010 for loon by  doxygen 1.3.9.1