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

Private Attributes

te::sam::rtree::Index< std::size_t > m_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::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.

References clear().

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.

References m_index, and m_indexContainer.

Referenced by ~RTreeIndex().

◆ getData()

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

Searches from all data consdering the given mbr.

Definition at line 121 of file RTreeIndex.h.

References m_indexContainer.

◆ 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.

References m_index, and m_indexContainer.

◆ 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.

References m_index, and m_indexContainer.

◆ 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.

References m_index, and m_indexContainer.

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.

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

◆ 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.

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


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