Template Class VIMapNearestNeighborLookupBase

Inheritance Relationships

Derived Type

Class Documentation

template<typename QueryType, typename DataType>
class vi_map_helpers::VIMapNearestNeighborLookupBase

Subclassed by vi_map_helpers::BasicMapElementsVIMapNearestNeighborLookup< QueryType, DataType >

Public Functions

FRIEND_TEST(VIMapNearestNeighborLookupTest, MultipleVertexMap)
FRIEND_TEST(VIMapNearestNeighborLookupTest, MultipleVertexRadiusLookup)
VIMapNearestNeighborLookupBase() = default
virtual ~VIMapNearestNeighborLookupBase() = default
bool getClosestDataItem(const QueryType &query, DataType *closest_data_item) const
template<typename Allocator>
void getAllDataItemsWithinRadius(const QueryType &query, const double search_radius, std::unordered_set<DataType, std::hash<DataType>, std::equal_to<DataType>, Allocator> *data_items_within_search_radius) const
inline size_t size() const
inline bool empty() const

Protected Functions

inline void buildIndex(const vi_map::VIMap &map)
inline std::vector<DataType> *getDataItemsMutable()
inline const std::vector<DataType> &getDataItems() const
inline void resizeIndexData(const size_t num_rows, const size_t num_cols)
template<typename ..._Args>
inline void emplaceBackDataItem(_Args&&... __args)
inline void setNearestNeighborIndexDataColumn(const Eigen::VectorXd &data, const size_t col_idx)
inline void initializeIndex()