libspatialindex API Reference  (git-trunk)
SpatialIndex::TPRTree::TPRTree Class Reference

#include <TPRTree.h>

Inheritance diagram for SpatialIndex::TPRTree::TPRTree:
Inheritance graph
Collaboration diagram for SpatialIndex::TPRTree::TPRTree:
Collaboration graph

Public Member Functions

 TPRTree (IStorageManager &, Tools::PropertySet &)
 
 ~TPRTree ()
 
virtual void insertData (uint32_t len, const uint8_t *pData, const IShape &shape, id_type shapeIdentifier)
 
virtual bool deleteData (const IShape &shape, id_type id)
 
virtual void internalNodesQuery (const IShape &query, IVisitor &v)
 
virtual void containsWhatQuery (const IShape &query, IVisitor &v)
 
virtual void intersectsWithQuery (const IShape &query, IVisitor &v)
 
virtual void pointLocationQuery (const Point &query, IVisitor &v)
 
virtual void nearestNeighborQuery (uint32_t k, const IShape &query, IVisitor &v, INearestNeighborComparator &)
 
virtual void nearestNeighborQuery (uint32_t k, const IShape &query, IVisitor &v)
 
virtual void selfJoinQuery (const IShape &s, IVisitor &v)
 
virtual void queryStrategy (IQueryStrategy &qs)
 
virtual void getIndexProperties (Tools::PropertySet &out) const
 
virtual void addCommand (ICommand *pCommand, CommandType ct)
 
virtual bool isIndexValid ()
 
virtual void getStatistics (IStatistics **out) const
 
virtual void flush ()
 
- Public Member Functions inherited from SpatialIndex::ISpatialIndex
virtual ~ISpatialIndex ()=default
 

Friends

class Node
 
class Leaf
 
class Index
 
std::ostream & operator<< (std::ostream &os, const TPRTree &t)
 

Detailed Description

Definition at line 39 of file src/tprtree/TPRTree.h.

Constructor & Destructor Documentation

◆ TPRTree()

SpatialIndex::TPRTree::TPRTree::TPRTree ( IStorageManager sm,
Tools::PropertySet ps 
)

◆ ~TPRTree()

SpatialIndex::TPRTree::TPRTree::~TPRTree ( )

Definition at line 243 of file TPRTree.cc.

Member Function Documentation

◆ addCommand()

void SpatialIndex::TPRTree::TPRTree::addCommand ( ICommand pCommand,
CommandType  ct 
)
virtual

◆ containsWhatQuery()

void SpatialIndex::TPRTree::TPRTree::containsWhatQuery ( const IShape query,
IVisitor v 
)
virtual

Implements SpatialIndex::ISpatialIndex.

Definition at line 328 of file TPRTree.cc.

References SpatialIndex::TPRTree::ContainmentQuery, and SpatialIndex::IShape::getDimension().

Here is the call graph for this function:

◆ deleteData()

◆ flush()

void SpatialIndex::TPRTree::TPRTree::flush ( )
virtual

◆ getIndexProperties()

◆ getStatistics()

void SpatialIndex::TPRTree::TPRTree::getStatistics ( IStatistics **  out) const
virtual

Implements SpatialIndex::ISpatialIndex.

Definition at line 576 of file TPRTree.cc.

◆ insertData()

◆ internalNodesQuery()

void SpatialIndex::TPRTree::TPRTree::internalNodesQuery ( const IShape query,
IVisitor v 
)
virtual

Implements SpatialIndex::ISpatialIndex.

Definition at line 323 of file TPRTree.cc.

◆ intersectsWithQuery()

void SpatialIndex::TPRTree::TPRTree::intersectsWithQuery ( const IShape query,
IVisitor v 
)
virtual

Implements SpatialIndex::ISpatialIndex.

Definition at line 334 of file TPRTree.cc.

References SpatialIndex::IShape::getDimension(), and SpatialIndex::TPRTree::IntersectionQuery.

Here is the call graph for this function:

◆ isIndexValid()

◆ nearestNeighborQuery() [1/2]

void SpatialIndex::TPRTree::TPRTree::nearestNeighborQuery ( uint32_t  k,
const IShape query,
IVisitor v,
INearestNeighborComparator  
)
virtual

Implements SpatialIndex::ISpatialIndex.

Definition at line 347 of file TPRTree.cc.

Referenced by nearestNeighborQuery().

Here is the caller graph for this function:

◆ nearestNeighborQuery() [2/2]

void SpatialIndex::TPRTree::TPRTree::nearestNeighborQuery ( uint32_t  k,
const IShape query,
IVisitor v 
)
virtual

Implements SpatialIndex::ISpatialIndex.

Definition at line 352 of file TPRTree.cc.

References SpatialIndex::IShape::getDimension(), and nearestNeighborQuery().

Here is the call graph for this function:

◆ pointLocationQuery()

void SpatialIndex::TPRTree::TPRTree::pointLocationQuery ( const Point query,
IVisitor v 
)
virtual

◆ queryStrategy()

void SpatialIndex::TPRTree::TPRTree::queryStrategy ( IQueryStrategy qs)
virtual

Implements SpatialIndex::ISpatialIndex.

Definition at line 364 of file TPRTree.cc.

References SpatialIndex::IQueryStrategy::getNextEntry().

Here is the call graph for this function:

◆ selfJoinQuery()

void SpatialIndex::TPRTree::TPRTree::selfJoinQuery ( const IShape s,
IVisitor v 
)
virtual

Implements SpatialIndex::ISpatialIndex.

Definition at line 359 of file TPRTree.cc.

Friends And Related Function Documentation

◆ Index

friend class Index
friend

Definition at line 191 of file src/tprtree/TPRTree.h.

Referenced by flush().

◆ Leaf

friend class Leaf
friend

Definition at line 190 of file src/tprtree/TPRTree.h.

Referenced by flush().

◆ Node

friend class Node
friend

Definition at line 189 of file src/tprtree/TPRTree.h.

◆ operator<<

std::ostream& operator<< ( std::ostream &  os,
const TPRTree t 
)
friend

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