Compadre  1.5.9
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Public Types | Public Member Functions | Public Attributes | List of all members
Compadre::RadiusResultSet< _DistanceType, _IndexType > Class Template Reference

Custom RadiusResultSet for nanoflann that uses pre-allocated space for indices and radii instead of using std::vec for std::pairs. More...

Detailed Description

template<typename _DistanceType, typename _IndexType = size_t>
class Compadre::RadiusResultSet< _DistanceType, _IndexType >

Custom RadiusResultSet for nanoflann that uses pre-allocated space for indices and radii instead of using std::vec for std::pairs.

Definition at line 32 of file Compadre_PointCloudSearch.hpp.

#include <Compadre_PointCloudSearch.hpp>

Public Types

typedef _DistanceType DistanceType
 
typedef _IndexType IndexType
 

Public Member Functions

 RadiusResultSet (DistanceType radius_, DistanceType *r_dist_, IndexType *i_dist_, const IndexType max_size_)
 
void init ()
 
void clear ()
 
size_t size () const
 
bool full () const
 
bool addPoint (DistanceType dist, IndexType index)
 
DistanceType worstDist () const
 
std::pair< IndexType,
DistanceType
worst_item () const
 
void sort ()
 

Public Attributes

const DistanceType radius
 
IndexType count
 
DistanceTyper_dist
 
IndexTypei_dist
 
const IndexType max_size
 

Member Typedef Documentation

template<typename _DistanceType , typename _IndexType = size_t>
typedef _DistanceType Compadre::RadiusResultSet< _DistanceType, _IndexType >::DistanceType

Definition at line 36 of file Compadre_PointCloudSearch.hpp.

template<typename _DistanceType , typename _IndexType = size_t>
typedef _IndexType Compadre::RadiusResultSet< _DistanceType, _IndexType >::IndexType

Definition at line 37 of file Compadre_PointCloudSearch.hpp.

Constructor & Destructor Documentation

template<typename _DistanceType , typename _IndexType = size_t>
Compadre::RadiusResultSet< _DistanceType, _IndexType >::RadiusResultSet ( DistanceType  radius_,
DistanceType r_dist_,
IndexType i_dist_,
const IndexType  max_size_ 
)
inline

Definition at line 45 of file Compadre_PointCloudSearch.hpp.

Member Function Documentation

template<typename _DistanceType , typename _IndexType = size_t>
bool Compadre::RadiusResultSet< _DistanceType, _IndexType >::addPoint ( DistanceType  dist,
IndexType  index 
)
inline

Definition at line 60 of file Compadre_PointCloudSearch.hpp.

template<typename _DistanceType , typename _IndexType = size_t>
void Compadre::RadiusResultSet< _DistanceType, _IndexType >::clear ( )
inline

Definition at line 54 of file Compadre_PointCloudSearch.hpp.

template<typename _DistanceType , typename _IndexType = size_t>
bool Compadre::RadiusResultSet< _DistanceType, _IndexType >::full ( ) const
inline

Definition at line 58 of file Compadre_PointCloudSearch.hpp.

template<typename _DistanceType , typename _IndexType = size_t>
void Compadre::RadiusResultSet< _DistanceType, _IndexType >::init ( )
inline

Definition at line 52 of file Compadre_PointCloudSearch.hpp.

template<typename _DistanceType , typename _IndexType = size_t>
size_t Compadre::RadiusResultSet< _DistanceType, _IndexType >::size ( ) const
inline

Definition at line 56 of file Compadre_PointCloudSearch.hpp.

template<typename _DistanceType , typename _IndexType = size_t>
void Compadre::RadiusResultSet< _DistanceType, _IndexType >::sort ( )
inline

Definition at line 88 of file Compadre_PointCloudSearch.hpp.

template<typename _DistanceType , typename _IndexType = size_t>
std::pair<IndexType, DistanceType> Compadre::RadiusResultSet< _DistanceType, _IndexType >::worst_item ( ) const
inline

Definition at line 83 of file Compadre_PointCloudSearch.hpp.

template<typename _DistanceType , typename _IndexType = size_t>
DistanceType Compadre::RadiusResultSet< _DistanceType, _IndexType >::worstDist ( ) const
inline

Definition at line 81 of file Compadre_PointCloudSearch.hpp.

Member Data Documentation

template<typename _DistanceType , typename _IndexType = size_t>
IndexType Compadre::RadiusResultSet< _DistanceType, _IndexType >::count

Definition at line 40 of file Compadre_PointCloudSearch.hpp.

template<typename _DistanceType , typename _IndexType = size_t>
IndexType* Compadre::RadiusResultSet< _DistanceType, _IndexType >::i_dist

Definition at line 42 of file Compadre_PointCloudSearch.hpp.

template<typename _DistanceType , typename _IndexType = size_t>
const IndexType Compadre::RadiusResultSet< _DistanceType, _IndexType >::max_size

Definition at line 43 of file Compadre_PointCloudSearch.hpp.

template<typename _DistanceType , typename _IndexType = size_t>
DistanceType* Compadre::RadiusResultSet< _DistanceType, _IndexType >::r_dist

Definition at line 41 of file Compadre_PointCloudSearch.hpp.

template<typename _DistanceType , typename _IndexType = size_t>
const DistanceType Compadre::RadiusResultSet< _DistanceType, _IndexType >::radius

Definition at line 39 of file Compadre_PointCloudSearch.hpp.


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