Loading...
Searching...
No Matches
te::vp::KDTreeMultiIndex< T > Class Template Reference

#include <KDTreeMultiIndex.h>

Public Member Functions

void clear ()
 Inserts the given data considering the given envelope as key.
 
std::unique_ptr< te::vp::IndexReport< T > > getData () const
 Searches from all data consdering the given mbr.
 
void insert (const te::gm::Coord2D &coord, const T &data)
 Removes the given data considering the given envelope as key.
 
 KDTreeMultiIndex ()
 < Constructor
 
void remove (const te::gm::Coord2D &coord, std::size_t dataIndex)
 Gets all data from the KDTreeIndex.
 
std::unique_ptr< te::vp::IndexReport< T > > search (const te::gm::Envelope &mbr) const
 
 ~KDTreeMultiIndex ()
 Clears the index.
 

Private Types

using KD_NODE = te::sam::kdtree::Node<te::gm::Coord2D, std::size_t, std::vector<std::size_t>, te::sam::kdtree::kd_node_m_dataset_tag>
 

Private Attributes

te::sam::kdtree::Index< KD_NODEm_index
 The internal rtree to store the data indexes.
 
IndexContainer< T > m_indexContainer
 The indexed data container.
 

Detailed Description

template<class T>
class te::vp::KDTreeMultiIndex< T >

Definition at line 54 of file KDTreeMultiIndex.h.

Member Typedef Documentation

◆ KD_NODE

template<class T>
using te::vp::KDTreeMultiIndex< T >::KD_NODE = te::sam::kdtree::Node<te::gm::Coord2D, std::size_t, std::vector<std::size_t>, te::sam::kdtree::kd_node_m_dataset_tag>
private

Definition at line 56 of file KDTreeMultiIndex.h.

Constructor & Destructor Documentation

◆ KDTreeMultiIndex()

template<class T>
te::vp::KDTreeMultiIndex< T >::KDTreeMultiIndex ( )

< Constructor

Destructor

Definition at line 90 of file KDTreeMultiIndex.h.

References m_index.

◆ ~KDTreeMultiIndex()

template<class T>
te::vp::KDTreeMultiIndex< T >::~KDTreeMultiIndex ( )

Clears the index.

Definition at line 96 of file KDTreeMultiIndex.h.

References clear().

Member Function Documentation

◆ clear()

template<class T>
void te::vp::KDTreeMultiIndex< T >::clear ( )

Inserts the given data considering the given envelope as key.

Definition at line 102 of file KDTreeMultiIndex.h.

References m_index, and m_indexContainer.

Referenced by ~KDTreeMultiIndex().

◆ getData()

template<class T>
std::unique_ptr< te::vp::IndexReport< T > > te::vp::KDTreeMultiIndex< T >::getData ( ) const

Searches from all data consdering the given mbr.

Definition at line 123 of file KDTreeMultiIndex.h.

References m_indexContainer.

◆ insert()

template<class T>
void te::vp::KDTreeMultiIndex< T >::insert ( const te::gm::Coord2D & coord,
const T & data )

Removes the given data considering the given envelope as key.

Definition at line 110 of file KDTreeMultiIndex.h.

References m_index, and m_indexContainer.

◆ remove()

template<class T>
void te::vp::KDTreeMultiIndex< T >::remove ( const te::gm::Coord2D & coord,
std::size_t dataIndex )

Gets all data from the KDTreeIndex.

Definition at line 117 of file KDTreeMultiIndex.h.

References m_indexContainer.

◆ search()

template<class T>
std::unique_ptr< te::vp::IndexReport< T > > te::vp::KDTreeMultiIndex< T >::search ( const te::gm::Envelope & mbr) const

Definition at line 132 of file KDTreeMultiIndex.h.

References m_index, and m_indexContainer.

Member Data Documentation

◆ m_index

template<class T>
te::sam::kdtree::Index<KD_NODE> te::vp::KDTreeMultiIndex< T >::m_index
private

The internal rtree to store the data indexes.

Definition at line 82 of file KDTreeMultiIndex.h.

Referenced by clear(), insert(), KDTreeMultiIndex(), and search().

◆ m_indexContainer

template<class T>
IndexContainer<T> te::vp::KDTreeMultiIndex< T >::m_indexContainer
private

The indexed data container.

Definition at line 83 of file KDTreeMultiIndex.h.

Referenced by clear(), getData(), insert(), remove(), and search().


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