EIC Software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
nanoflann::RadiusResultSet< DistanceType, IndexType > Class Template Reference

#include <fun4all_coresoftware/blob/master/offline/packages/PHTpcTracker/externals/nanoflann.hpp>

+ Collaboration diagram for nanoflann::RadiusResultSet< DistanceType, IndexType >:

Public Member Functions

 RadiusResultSet (DistanceType radius_, std::vector< std::pair< IndexType, DistanceType > > &indices_dists)
 
 ~RadiusResultSet ()
 
void init ()
 
void clear ()
 
size_t size () const
 
bool full () const
 
void addPoint (DistanceType dist, IndexType index)
 
DistanceType worstDist () const
 
void set_radius_and_clear (const DistanceType r)
 
std::pair< IndexType,
DistanceType > 
worst_item () const
 
 RadiusResultSet (DistanceType radius_, std::vector< std::pair< IndexType, DistanceType > > &indices_dists)
 
 ~RadiusResultSet ()
 
void init ()
 
void clear ()
 
size_t size () const
 
bool full () const
 
void addPoint (DistanceType dist, IndexType index)
 
DistanceType worstDist () const
 
void set_radius_and_clear (const DistanceType r)
 
std::pair< IndexType,
DistanceType > 
worst_item () const
 

Public Attributes

const DistanceType radius
 
std::vector< std::pair
< IndexType, DistanceType > > & 
m_indices_dists
 

Detailed Description

template<typename DistanceType, typename IndexType = size_t>
class nanoflann::RadiusResultSet< DistanceType, IndexType >

A result-set class used when performing a radius based search.

Definition at line 152 of file nanoflann.hpp.

View newest version in sPHENIX GitHub at line 152 of file nanoflann.hpp

Constructor & Destructor Documentation

template<typename DistanceType, typename IndexType = size_t>
nanoflann::RadiusResultSet< DistanceType, IndexType >::RadiusResultSet ( DistanceType  radius_,
std::vector< std::pair< IndexType, DistanceType > > &  indices_dists 
)
inline

Definition at line 159 of file nanoflann.hpp.

View newest version in sPHENIX GitHub at line 159 of file nanoflann.hpp

References nanoflann::KNNResultSet< DistanceType, IndexType, CountType >::init().

+ Here is the call graph for this function:

template<typename DistanceType, typename IndexType = size_t>
nanoflann::RadiusResultSet< DistanceType, IndexType >::~RadiusResultSet ( )
inline

Definition at line 166 of file nanoflann.hpp.

View newest version in sPHENIX GitHub at line 166 of file nanoflann.hpp

template<typename DistanceType, typename IndexType = size_t>
nanoflann::RadiusResultSet< DistanceType, IndexType >::RadiusResultSet ( DistanceType  radius_,
std::vector< std::pair< IndexType, DistanceType > > &  indices_dists 
)
inline

Definition at line 159 of file nanoflann.hpp.

View newest version in sPHENIX GitHub at line 159 of file nanoflann.hpp

References nanoflann::KNNResultSet< DistanceType, IndexType, CountType >::init().

+ Here is the call graph for this function:

template<typename DistanceType, typename IndexType = size_t>
nanoflann::RadiusResultSet< DistanceType, IndexType >::~RadiusResultSet ( )
inline

Definition at line 166 of file nanoflann.hpp.

View newest version in sPHENIX GitHub at line 166 of file nanoflann.hpp

Member Function Documentation

template<typename DistanceType, typename IndexType = size_t>
void nanoflann::RadiusResultSet< DistanceType, IndexType >::addPoint ( DistanceType  dist,
IndexType  index 
)
inline

Definition at line 175 of file nanoflann.hpp.

View newest version in sPHENIX GitHub at line 175 of file nanoflann.hpp

References G4BECAL::radius.

template<typename DistanceType, typename IndexType = size_t>
void nanoflann::RadiusResultSet< DistanceType, IndexType >::addPoint ( DistanceType  dist,
IndexType  index 
)
inline

Definition at line 175 of file nanoflann.hpp.

View newest version in sPHENIX GitHub at line 175 of file nanoflann.hpp

References G4BECAL::radius.

template<typename DistanceType, typename IndexType = size_t>
void nanoflann::RadiusResultSet< DistanceType, IndexType >::clear ( void  )
inline

Definition at line 169 of file nanoflann.hpp.

View newest version in sPHENIX GitHub at line 169 of file nanoflann.hpp

template<typename DistanceType, typename IndexType = size_t>
void nanoflann::RadiusResultSet< DistanceType, IndexType >::clear ( void  )
inline

Definition at line 169 of file nanoflann.hpp.

View newest version in sPHENIX GitHub at line 169 of file nanoflann.hpp

template<typename DistanceType, typename IndexType = size_t>
bool nanoflann::RadiusResultSet< DistanceType, IndexType >::full ( ) const
inline

Definition at line 173 of file nanoflann.hpp.

View newest version in sPHENIX GitHub at line 173 of file nanoflann.hpp

template<typename DistanceType, typename IndexType = size_t>
bool nanoflann::RadiusResultSet< DistanceType, IndexType >::full ( ) const
inline

Definition at line 173 of file nanoflann.hpp.

View newest version in sPHENIX GitHub at line 173 of file nanoflann.hpp

template<typename DistanceType, typename IndexType = size_t>
void nanoflann::RadiusResultSet< DistanceType, IndexType >::init ( void  )
inline

Definition at line 168 of file nanoflann.hpp.

View newest version in sPHENIX GitHub at line 168 of file nanoflann.hpp

template<typename DistanceType, typename IndexType = size_t>
void nanoflann::RadiusResultSet< DistanceType, IndexType >::init ( void  )
inline

Definition at line 168 of file nanoflann.hpp.

View newest version in sPHENIX GitHub at line 168 of file nanoflann.hpp

template<typename DistanceType, typename IndexType = size_t>
void nanoflann::RadiusResultSet< DistanceType, IndexType >::set_radius_and_clear ( const DistanceType  r)
inline

Clears the result set and adjusts the search radius.

Definition at line 184 of file nanoflann.hpp.

View newest version in sPHENIX GitHub at line 184 of file nanoflann.hpp

References G4BECAL::radius.

template<typename DistanceType, typename IndexType = size_t>
void nanoflann::RadiusResultSet< DistanceType, IndexType >::set_radius_and_clear ( const DistanceType  r)
inline

Clears the result set and adjusts the search radius.

Definition at line 184 of file nanoflann.hpp.

View newest version in sPHENIX GitHub at line 184 of file nanoflann.hpp

References G4BECAL::radius.

template<typename DistanceType, typename IndexType = size_t>
size_t nanoflann::RadiusResultSet< DistanceType, IndexType >::size ( void  ) const
inline

Definition at line 171 of file nanoflann.hpp.

View newest version in sPHENIX GitHub at line 171 of file nanoflann.hpp

template<typename DistanceType, typename IndexType = size_t>
size_t nanoflann::RadiusResultSet< DistanceType, IndexType >::size ( void  ) const
inline

Definition at line 171 of file nanoflann.hpp.

View newest version in sPHENIX GitHub at line 171 of file nanoflann.hpp

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

Find the worst result (furtherest neighbor) without copying or sorting Pre-conditions: size() > 0

Definition at line 194 of file nanoflann.hpp.

View newest version in sPHENIX GitHub at line 194 of file nanoflann.hpp

References it.

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

Find the worst result (furtherest neighbor) without copying or sorting Pre-conditions: size() > 0

Definition at line 194 of file nanoflann.hpp.

View newest version in sPHENIX GitHub at line 194 of file nanoflann.hpp

References it.

template<typename DistanceType, typename IndexType = size_t>
DistanceType nanoflann::RadiusResultSet< DistanceType, IndexType >::worstDist ( ) const
inline

Definition at line 181 of file nanoflann.hpp.

View newest version in sPHENIX GitHub at line 181 of file nanoflann.hpp

References G4BECAL::radius.

template<typename DistanceType, typename IndexType = size_t>
DistanceType nanoflann::RadiusResultSet< DistanceType, IndexType >::worstDist ( ) const
inline

Definition at line 181 of file nanoflann.hpp.

View newest version in sPHENIX GitHub at line 181 of file nanoflann.hpp

References G4BECAL::radius.

Member Data Documentation

template<typename DistanceType, typename IndexType = size_t>
std::vector< std::pair< IndexType, DistanceType > > & nanoflann::RadiusResultSet< DistanceType, IndexType >::m_indices_dists

Definition at line 157 of file nanoflann.hpp.

View newest version in sPHENIX GitHub at line 157 of file nanoflann.hpp

template<typename DistanceType, typename IndexType = size_t>
const DistanceType nanoflann::RadiusResultSet< DistanceType, IndexType >::radius

Definition at line 155 of file nanoflann.hpp.

View newest version in sPHENIX GitHub at line 155 of file nanoflann.hpp


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