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

#include <RTree.h>

Inheritance diagram for SpatialIndex::RTree::RTree:
Inheritance graph
Collaboration diagram for SpatialIndex::RTree::RTree:
Collaboration graph

Public Member Functions

 RTree (IStorageManager &, Tools::PropertySet &)
 
 ~RTree ()
 
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
 
class BulkLoader
 
std::ostream & operator<< (std::ostream &os, const RTree &t)
 

Detailed Description

Definition at line 39 of file src/rtree/RTree.h.

Constructor & Destructor Documentation

◆ RTree()

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

◆ ~RTree()

SpatialIndex::RTree::RTree::~RTree ( )

Definition at line 395 of file RTree.cc.

Member Function Documentation

◆ addCommand()

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

◆ containsWhatQuery()

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

◆ deleteData()

bool SpatialIndex::RTree::RTree::deleteData ( const IShape shape,
id_type  id 
)
virtual

Implements SpatialIndex::ISpatialIndex.

Definition at line 424 of file RTree.cc.

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

Here is the call graph for this function:

◆ flush()

void SpatialIndex::RTree::RTree::flush ( )
virtual

Implements SpatialIndex::ISpatialIndex.

Definition at line 846 of file RTree.cc.

◆ getIndexProperties()

◆ getStatistics()

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

Implements SpatialIndex::ISpatialIndex.

Definition at line 841 of file RTree.cc.

◆ insertData()

void SpatialIndex::RTree::RTree::insertData ( uint32_t  len,
const uint8_t *  pData,
const IShape shape,
id_type  shapeIdentifier 
)
virtual

Implements SpatialIndex::ISpatialIndex.

Definition at line 404 of file RTree.cc.

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

Here is the call graph for this function:

◆ internalNodesQuery()

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

◆ intersectsWithQuery()

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

Implements SpatialIndex::ISpatialIndex.

Definition at line 552 of file RTree.cc.

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

Here is the call graph for this function:

◆ isIndexValid()

bool SpatialIndex::RTree::RTree::isIndexValid ( )
virtual

◆ nearestNeighborQuery() [1/2]

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

Implements SpatialIndex::ISpatialIndex.

Definition at line 628 of file RTree.cc.

References SpatialIndex::IShape::getDimension().

Here is the call graph for this function:

◆ nearestNeighborQuery() [2/2]

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

◆ pointLocationQuery()

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

◆ queryStrategy()

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

Implements SpatialIndex::ISpatialIndex.

Definition at line 646 of file RTree.cc.

References SpatialIndex::IQueryStrategy::getNextEntry().

Here is the call graph for this function:

◆ selfJoinQuery()

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

Implements SpatialIndex::ISpatialIndex.

Definition at line 636 of file RTree.cc.

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

Here is the call graph for this function:

Friends And Related Function Documentation

◆ BulkLoader

friend class BulkLoader
friend

Definition at line 191 of file src/rtree/RTree.h.

◆ Index

friend class Index
friend

Definition at line 190 of file src/rtree/RTree.h.

◆ Leaf

friend class Leaf
friend

Definition at line 189 of file src/rtree/RTree.h.

◆ Node

friend class Node
friend

Definition at line 188 of file src/rtree/RTree.h.

◆ operator<<

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

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