SU2
Public Member Functions | List of all members
su2_adtComparePointClass Class Reference

Functor, used for the sorting of the points when building an ADT. More...

#include <adt_structure.hpp>

Public Member Functions

 su2_adtComparePointClass (const su2double *coor, const unsigned short splitDir, const unsigned short nDimADT)
 Constructor of the class. The member variables are initialized. More...
 
 ~su2_adtComparePointClass ()
 Destructor, nothing to be done.
 
bool operator() (const unsigned long p0, const unsigned long p1) const
 Operator used for the sorting of the points. More...
 

Detailed Description

Functor, used for the sorting of the points when building an ADT.

Author
E. van der Weide
Version
4.1.3 "Cardinal"

Constructor & Destructor Documentation

§ su2_adtComparePointClass()

su2_adtComparePointClass::su2_adtComparePointClass ( const su2double *  coor,
const unsigned short  splitDir,
const unsigned short  nDimADT 
)

Constructor of the class. The member variables are initialized.

Parameters
[in]coorPointer to the coordinates of the points.
[in]splitDirDirection that must be used to sort the coordinates.
[in]nDimADTNumber of spatial dimensions of the ADT and coordinates.

Member Function Documentation

§ operator()()

bool su2_adtComparePointClass::operator() ( const unsigned long  p0,
const unsigned long  p1 
) const
inline

Operator used for the sorting of the points.

Parameters
[in]p0Index of the first point to be compared.
[in]p1Index of the second point to be compared.

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