Compadre  1.2.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator 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 24 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 28 of file Compadre_PointCloudSearch.hpp.

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

Definition at line 29 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 37 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 52 of file Compadre_PointCloudSearch.hpp.

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

Definition at line 46 of file Compadre_PointCloudSearch.hpp.

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

Definition at line 50 of file Compadre_PointCloudSearch.hpp.

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

Definition at line 44 of file Compadre_PointCloudSearch.hpp.

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

Definition at line 48 of file Compadre_PointCloudSearch.hpp.

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

Definition at line 80 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 75 of file Compadre_PointCloudSearch.hpp.

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

Definition at line 73 of file Compadre_PointCloudSearch.hpp.

Member Data Documentation

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

Definition at line 32 of file Compadre_PointCloudSearch.hpp.

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

Definition at line 34 of file Compadre_PointCloudSearch.hpp.

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

Definition at line 35 of file Compadre_PointCloudSearch.hpp.

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

Definition at line 33 of file Compadre_PointCloudSearch.hpp.

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

Definition at line 31 of file Compadre_PointCloudSearch.hpp.


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