OpenWalnut  1.4.0
Public Member Functions | Public Attributes
lessy Struct Reference

implements the compare function for std::nth_element on a point array More...

#include <WKdTree.h>

List of all members.

Public Member Functions

 lessy (float const *const data, const int pos)
 constructor
bool operator() (const unsigned int &lhs, const unsigned int &rhs) const
 comparison operator less

Public Attributes

float const *const data
 stores the pointer to the data array
const int pos
 stores the axis at which the array is sorted

Detailed Description

implements the compare function for std::nth_element on a point array

Definition at line 36 of file WKdTree.h.


Constructor & Destructor Documentation

lessy::lessy ( float const *const  data,
const int  pos 
) [inline]

constructor

Parameters:
datapointer to the array
posx,y or z axis

Definition at line 46 of file WKdTree.h.


Member Function Documentation

bool lessy::operator() ( const unsigned int &  lhs,
const unsigned int &  rhs 
) const [inline]

comparison operator less

Parameters:
lhs
rhs
Returns:
is lhs smaller than rhs

Definition at line 57 of file WKdTree.h.

References data, and pos.


Member Data Documentation

float const* const lessy::data

stores the pointer to the data array

Definition at line 38 of file WKdTree.h.

Referenced by operator()().

const int lessy::pos

stores the axis at which the array is sorted

Definition at line 39 of file WKdTree.h.

Referenced by operator()().


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