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

#include <Leaf.h>

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

Public Member Functions

 ~Leaf () override
 
- Public Member Functions inherited from SpatialIndex::RTree::Node
 ~Node () override
 
Tools::IObjectclone () override
 
uint32_t getByteArraySize () override
 
void loadFromByteArray (const uint8_t *data) override
 
void storeToByteArray (uint8_t **data, uint32_t &len) override
 
id_type getIdentifier () const override
 
void getShape (IShape **out) const override
 
uint32_t getChildrenCount () const override
 
id_type getChildIdentifier (uint32_t index) const override
 
void getChildShape (uint32_t index, IShape **out) const override
 
void getChildData (uint32_t index, uint32_t &length, uint8_t **data) const override
 
uint32_t getLevel () const override
 
bool isIndex () const override
 
bool isLeaf () const override
 
- Public Member Functions inherited from SpatialIndex::INode
 ~INode () override=default
 
- Public Member Functions inherited from SpatialIndex::IEntry
 ~IEntry () override=default
 
- Public Member Functions inherited from Tools::IObject
virtual ~IObject ()=default
 
- Public Member Functions inherited from Tools::ISerializable
virtual ~ISerializable ()=default
 

Protected Member Functions

 Leaf (RTree *pTree, id_type id)
 
NodePtr chooseSubtree (const Region &mbr, uint32_t level, std::stack< id_type > &pathBuffer) override
 
NodePtr findLeaf (const Region &mbr, id_type id, std::stack< id_type > &pathBuffer) override
 
void split (uint32_t dataLength, uint8_t *pData, Region &mbr, id_type id, NodePtr &left, NodePtr &right) override
 
virtual void deleteData (const Region &mbr, id_type id, std::stack< id_type > &pathBuffer)
 

Friends

class RTree
 
class BulkLoader
 

Detailed Description

Definition at line 34 of file rtree/Leaf.h.

Constructor & Destructor Documentation

◆ ~Leaf()

Leaf::~Leaf ( )
overridedefault

◆ Leaf()

Leaf::Leaf ( RTree pTree,
id_type  id 
)
protected

Definition at line 43 of file rtree/Leaf.cc.

Member Function Documentation

◆ chooseSubtree()

NodePtr Leaf::chooseSubtree ( const Region mbr,
uint32_t  level,
std::stack< id_type > &  pathBuffer 
)
overrideprotectedvirtual

Implements SpatialIndex::RTree::Node.

Definition at line 47 of file rtree/Leaf.cc.

◆ deleteData()

void Leaf::deleteData ( const Region mbr,
id_type  id,
std::stack< id_type > &  pathBuffer 
)
protectedvirtual

Definition at line 111 of file rtree/Leaf.cc.

References Tools::PoolPointer< X >::get(), and Tools::PoolPointer< X >::relinquish().

Here is the call graph for this function:

◆ findLeaf()

NodePtr Leaf::findLeaf ( const Region mbr,
id_type  id,
std::stack< id_type > &  pathBuffer 
)
overrideprotectedvirtual

Implements SpatialIndex::RTree::Node.

Definition at line 54 of file rtree/Leaf.cc.

◆ split()

void Leaf::split ( uint32_t  dataLength,
uint8_t *  pData,
Region mbr,
id_type  id,
NodePtr left,
NodePtr right 
)
overrideprotectedvirtual

Friends And Related Function Documentation

◆ BulkLoader

friend class BulkLoader
friend

Definition at line 50 of file rtree/Leaf.h.

◆ RTree

friend class RTree
friend

Definition at line 49 of file rtree/Leaf.h.


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