Public Types | Public Member Functions | List of all members
rtflann::Hamming< T > Struct Template Reference

#include <dist.h>

Public Types

typedef T ElementType
 
typedef unsigned int ResultType
 

Public Member Functions

template<typename Iterator1 , typename Iterator2 >
ResultType operator() (Iterator1 a, Iterator2 b, size_t size, ResultType=0) const
 
unsigned int popcnt32 (uint32_t n) const
 
unsigned int popcnt64 (uint64_t n) const
 

Detailed Description

template<typename T>
struct rtflann::Hamming< T >

Definition at line 561 of file dist.h.

Member Typedef Documentation

◆ ElementType

template<typename T >
typedef T rtflann::Hamming< T >::ElementType

Definition at line 563 of file dist.h.

◆ ResultType

template<typename T >
typedef unsigned int rtflann::Hamming< T >::ResultType

Definition at line 564 of file dist.h.

Member Function Documentation

◆ operator()()

template<typename T >
template<typename Iterator1 , typename Iterator2 >
ResultType rtflann::Hamming< T >::operator() ( Iterator1  a,
Iterator2  b,
size_t  size,
ResultType  = 0 
) const
inline

Definition at line 583 of file dist.h.

◆ popcnt32()

template<typename T >
unsigned int rtflann::Hamming< T >::popcnt32 ( uint32_t  n) const
inline

This is popcount_3() from: http://en.wikipedia.org/wiki/Hamming_weight

Definition at line 568 of file dist.h.

◆ popcnt64()

template<typename T >
unsigned int rtflann::Hamming< T >::popcnt64 ( uint64_t  n) const
inline

Definition at line 575 of file dist.h.


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


rtabmap
Author(s): Mathieu Labbe
autogenerated on Thu Jul 25 2024 02:50:28