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

This class makes easier and more generic the use of the te::sam::rtree::Index. More...

#include <RTreeIndex.h>

Public Member Functions

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

Private Attributes

te::sam::rtree::Index< std::size_t > m_index
 The internal rtree to store the data indexes. More...
 
IndexContainer< T > m_indexContainer
 The indexed data container. More...
 

Detailed Description

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

This class makes easier and more generic the use of the te::sam::rtree::Index.

Definition at line 54 of file RTreeIndex.h.

Constructor & Destructor Documentation

◆ RTreeIndex()

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

< Constructor

Destructor

Definition at line 88 of file RTreeIndex.h.

◆ ~RTreeIndex()

template<class T >
te::vp::RTreeIndex< T >::~RTreeIndex

Clears the index.

Definition at line 93 of file RTreeIndex.h.

Member Function Documentation

◆ clear()

template<class T >
void te::vp::RTreeIndex< T >::clear

Inserts the given data considering the given envelope as key.

Definition at line 99 of file RTreeIndex.h.

◆ getData()

template<class T >
std::unique_ptr< te::vp::IndexReport< T > > te::vp::RTreeIndex< T >::getData

Searches from all data consdering the given mbr.

Definition at line 121 of file RTreeIndex.h.

◆ insert()

template<class T >
void te::vp::RTreeIndex< T >::insert ( const te::gm::Envelope envelope,
const T &  data 
)

Removes the given data considering the given envelope as key.

Definition at line 107 of file RTreeIndex.h.

◆ remove()

template<class T >
void te::vp::RTreeIndex< T >::remove ( const te::gm::Envelope envelope,
std::size_t  dataIndex 
)

Gets all data from the RTreeIndex.

Definition at line 114 of file RTreeIndex.h.

◆ search()

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

Definition at line 130 of file RTreeIndex.h.

Member Data Documentation

◆ m_index

template<class T >
te::sam::rtree::Index<std::size_t> te::vp::RTreeIndex< T >::m_index
private

The internal rtree to store the data indexes.

Definition at line 80 of file RTreeIndex.h.

◆ m_indexContainer

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

The indexed data container.

Definition at line 81 of file RTreeIndex.h.


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