ACloudViewer  3.9.4
A Modern Library for 3D Data Processing
flann::cuda::RadiusResultSet< DistanceType > Struct Template Reference

#include <result_set.h>

Public Member Functions

__device__ __host__ RadiusResultSet (DistanceType radius, int *segment_starts, bool sorted)
 
__device__ DistanceType worstDist ()
 
__device__ void insert (int index, DistanceType dist)
 
__device__ void setResultLocation (DistanceType *dists, int *index, int thread, int)
 
__device__ void finish ()
 

Public Attributes

DistanceType radius_sq_
 
int * segment_starts_
 
int count_
 
bool sorted_
 
int * resultIndex
 
DistanceType * resultDist
 

Detailed Description

template<typename DistanceType>
struct flann::cuda::RadiusResultSet< DistanceType >

fills the radius output buffer. IMPORTANT ASSERTION: ASSUMES THAT THERE IS ENOUGH SPACE FOR EVERY NEIGHBOR! IF THIS ISN'T TRUE, USE KnnRadiusResultSet! (Otherwise, the neighbors of one element might overflow into the next element, or past the buffer.)

Definition at line 480 of file result_set.h.

Constructor & Destructor Documentation

◆ RadiusResultSet()

template<typename DistanceType >
__device__ __host__ flann::cuda::RadiusResultSet< DistanceType >::RadiusResultSet ( DistanceType  radius,
int *  segment_starts,
bool  sorted 
)
inline

Definition at line 488 of file result_set.h.

Member Function Documentation

◆ finish()

◆ insert()

◆ setResultLocation()

template<typename DistanceType >
__device__ void flann::cuda::RadiusResultSet< DistanceType >::setResultLocation ( DistanceType *  dists,
int *  index,
int  thread,
int   
)
inline

◆ worstDist()

template<typename DistanceType >
__device__ DistanceType flann::cuda::RadiusResultSet< DistanceType >::worstDist ( )
inline

Member Data Documentation

◆ count_

template<typename DistanceType >
int flann::cuda::RadiusResultSet< DistanceType >::count_

◆ radius_sq_

template<typename DistanceType >
DistanceType flann::cuda::RadiusResultSet< DistanceType >::radius_sq_

◆ resultDist

◆ resultIndex

◆ segment_starts_

template<typename DistanceType >
int* flann::cuda::RadiusResultSet< DistanceType >::segment_starts_

◆ sorted_

template<typename DistanceType >
bool flann::cuda::RadiusResultSet< DistanceType >::sorted_

Definition at line 485 of file result_set.h.

Referenced by flann::cuda::RadiusResultSet< DistanceType >::finish().


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