GEOS  3.9.1dev
Public Member Functions | Private Attributes | List of all members
geos::index::strtree::ItemBoundable Class Reference

Boundable wrapper for a non-Boundable spatial object. Used internally by AbstractSTRtree. More...

#include <ItemBoundable.h>

Inheritance diagram for geos::index::strtree::ItemBoundable:
[legend]
Collaboration diagram for geos::index::strtree::ItemBoundable:
[legend]

Public Member Functions

 ItemBoundable (const void *newBounds, void *newItem)
 
 ~ItemBoundable () override=default
 
bool isLeaf () const override
 
const void * getBounds () const override
 
void * getItem () const
 
- Public Member Functions inherited from geos::index::strtree::Boundable
virtual ~Boundable ()
 

Private Attributes

const void * bounds
 
void * item
 

Detailed Description

Boundable wrapper for a non-Boundable spatial object. Used internally by AbstractSTRtree.

Todo:
TODO: It's unclear who takes ownership of passed newBounds and newItem objects.

Definition at line 32 of file ItemBoundable.h.

Constructor & Destructor Documentation

geos::index::strtree::ItemBoundable::ItemBoundable ( const void *  newBounds,
void *  newItem 
)
inline

Definition at line 35 of file ItemBoundable.h.

geos::index::strtree::ItemBoundable::~ItemBoundable ( )
overridedefault

Member Function Documentation

const void* geos::index::strtree::ItemBoundable::getBounds ( ) const
inlineoverridevirtual

Returns a representation of space that encloses this Boundable, preferably not much bigger than this Boundable's boundary yet fast to test for intersection with the bounds of other Boundables.

The class of object returned depends on the subclass of AbstractSTRtree.

Returns
an Envelope (for STRtrees), an Interval (for SIRtrees), or other object (for other subclasses of AbstractSTRtree)
See also
AbstractSTRtree::IntersectsOp

Implements geos::index::strtree::Boundable.

Reimplemented in geos::index::strtree::SimpleSTRnode.

Definition at line 42 of file ItemBoundable.h.

void* geos::index::strtree::ItemBoundable::getItem ( ) const
inline

Definition at line 46 of file ItemBoundable.h.

bool geos::index::strtree::ItemBoundable::isLeaf ( ) const
inlineoverridevirtual

Implements geos::index::strtree::Boundable.

Reimplemented in geos::index::strtree::SimpleSTRnode.

Definition at line 38 of file ItemBoundable.h.

Member Data Documentation

const void* geos::index::strtree::ItemBoundable::bounds
private

Definition at line 52 of file ItemBoundable.h.

void* geos::index::strtree::ItemBoundable::item
private

Definition at line 53 of file ItemBoundable.h.


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