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

#include <TPRTree.h>

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

Public Member Functions

 Data (uint32_t len, uint8_t *pData, MovingRegion &r, id_type id)
 
 ~Data () override
 
Dataclone () override
 
id_type getIdentifier () const override
 
void getShape (IShape **out) const override
 
void getData (uint32_t &len, uint8_t **data) const override
 
uint32_t getByteArraySize () override
 
void loadFromByteArray (const uint8_t *data) override
 
void storeToByteArray (uint8_t **data, uint32_t &len) override
 
- Public Member Functions inherited from SpatialIndex::IData
 ~IData () 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
 

Public Attributes

id_type m_id
 
MovingRegion m_region
 
uint8_t * m_pData
 
uint32_t m_dataLength
 

Detailed Description

Definition at line 52 of file include/spatialindex/TPRTree.h.

Constructor & Destructor Documentation

◆ Data()

SpatialIndex::TPRTree::Data::Data ( uint32_t  len,
uint8_t *  pData,
MovingRegion r,
id_type  id 
)

Definition at line 40 of file TPRTree.cc.

References m_dataLength, and m_pData.

Referenced by clone().

Here is the caller graph for this function:

◆ ~Data()

SpatialIndex::TPRTree::Data::~Data ( )
override

Definition at line 50 of file TPRTree.cc.

References m_pData.

Member Function Documentation

◆ clone()

SpatialIndex::TPRTree::Data * SpatialIndex::TPRTree::Data::clone ( )
overridevirtual

Implements Tools::IObject.

Definition at line 55 of file TPRTree.cc.

References Data(), m_dataLength, m_id, m_pData, and m_region.

Here is the call graph for this function:

◆ getByteArraySize()

uint32_t SpatialIndex::TPRTree::Data::getByteArraySize ( )
overridevirtual

Implements Tools::ISerializable.

Definition at line 82 of file TPRTree.cc.

References SpatialIndex::MovingRegion::getByteArraySize(), m_dataLength, and m_region.

Here is the call graph for this function:

◆ getData()

void SpatialIndex::TPRTree::Data::getData ( uint32_t &  len,
uint8_t **  data 
) const
overridevirtual

Implements SpatialIndex::IData.

Definition at line 70 of file TPRTree.cc.

References m_dataLength, and m_pData.

◆ getIdentifier()

SpatialIndex::id_type SpatialIndex::TPRTree::Data::getIdentifier ( ) const
overridevirtual

Implements SpatialIndex::IEntry.

Definition at line 60 of file TPRTree.cc.

References m_id.

◆ getShape()

void SpatialIndex::TPRTree::Data::getShape ( IShape **  out) const
overridevirtual

Implements SpatialIndex::IEntry.

Definition at line 65 of file TPRTree.cc.

References m_region.

◆ loadFromByteArray()

void SpatialIndex::TPRTree::Data::loadFromByteArray ( const uint8_t *  data)
overridevirtual

Implements Tools::ISerializable.

Definition at line 91 of file TPRTree.cc.

References SpatialIndex::MovingRegion::loadFromByteArray(), m_dataLength, m_id, m_pData, and m_region.

Here is the call graph for this function:

◆ storeToByteArray()

void SpatialIndex::TPRTree::Data::storeToByteArray ( uint8_t **  data,
uint32_t &  len 
)
overridevirtual

Implements Tools::ISerializable.

Definition at line 112 of file TPRTree.cc.

References m_dataLength, m_id, m_pData, m_region, and SpatialIndex::MovingRegion::storeToByteArray().

Here is the call graph for this function:

Member Data Documentation

◆ m_dataLength

uint32_t SpatialIndex::TPRTree::Data::m_dataLength

◆ m_id

id_type SpatialIndex::TPRTree::Data::m_id

◆ m_pData

uint8_t* SpatialIndex::TPRTree::Data::m_pData

◆ m_region

MovingRegion SpatialIndex::TPRTree::Data::m_region

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