29#include "../basic_types/datatype_structure.hpp"
40 const unsigned short splitDirection;
41 const unsigned short nDim;
51 : pointCoor(coor), splitDirection(splitDir), nDim(nDimADT) {}
58 inline bool operator()(
const unsigned long p0,
const unsigned long p1)
const {
59 return pointCoor[nDim * p0 + splitDirection] < pointCoor[nDim * p1 + splitDirection];
Functor, used for the sorting of the points when building an ADT.
Definition CADTComparePointClass.hpp:37
CADTComparePointClass(const su2double *coor, const unsigned short splitDir, const unsigned short nDimADT)
Constructor of the class. The member variables are initialized.
Definition CADTComparePointClass.hpp:50
bool operator()(const unsigned long p0, const unsigned long p1) const
Operator used for the sorting of the points.
Definition CADTComparePointClass.hpp:58
CADTComparePointClass()=delete
Default constructor of the class, disabled.
passivedouble su2double
Definition code_config.hpp:181