OpenWalnut  1.5.0dev
Public Member Functions | Public Attributes | List of all members
lessy Struct Reference

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

#include <WKdTree.h>

+ Collaboration diagram for lessy:

Public Member Functions

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

Public Attributes

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

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

◆ operator()()

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

◆ data

float const* const lessy::data

stores the pointer to the data array

Definition at line 38 of file WKdTree.h.

Referenced by operator()().

◆ pos

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: