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... | |
This class makes easier and more generic the use of the te::sam::rtree::Index.
Definition at line 54 of file RTreeIndex.h.
te::vp::RTreeIndex< T >::RTreeIndex |
te::vp::RTreeIndex< T >::~RTreeIndex |
Clears the index.
Definition at line 93 of file RTreeIndex.h.
void te::vp::RTreeIndex< T >::clear |
Inserts the given data considering the given envelope as key.
Definition at line 99 of file RTreeIndex.h.
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.
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.
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.
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.
|
private |
The internal rtree to store the data indexes.
Definition at line 80 of file RTreeIndex.h.
|
private |
The indexed data container.
Definition at line 81 of file RTreeIndex.h.