GEOS 3.11.1
|
A node of the STR tree. More...
#include <SimpleSTRnode.h>
Public Member Functions | |
SimpleSTRnode (std::size_t newLevel, const geom::Envelope *p_env, void *p_item, std::size_t capacity=10) | |
SimpleSTRnode (std::size_t newLevel) | |
void | toString (std::ostream &os, int indentLevel) const |
std::size_t | getNumNodes () const |
std::size_t | getNumLeafNodes () const |
const std::vector< SimpleSTRnode * > & | getChildNodes () const |
void * | getItem () const |
bool | removeItem (void *item) |
bool | removeChild (SimpleSTRnode *child) |
const geom::Envelope & | getEnvelope () const |
const void * | getBounds () const override |
std::size_t | getLevel () const |
std::size_t | size () const |
void | addChildNode (SimpleSTRnode *childNode) |
bool | isLeaf () const override |
bool | isComposite () const |
double | area () const |
Public Member Functions inherited from geos::index::strtree::ItemBoundable | |
ItemBoundable (const void *newBounds, void *newItem) | |
bool | isLeaf () const override |
const void * | getBounds () const override |
void * | getItem () const |
virtual const void * | getBounds () const =0 |
virtual bool | isLeaf () const =0 |
A node of the STR tree.
void geos::index::strtree::SimpleSTRnode::addChildNode | ( | SimpleSTRnode * | childNode | ) |
Adds either an AbstractNode, or if this is a leaf node, a data object (wrapped in an ItemBoundable)
|
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.
Reimplemented from geos::index::strtree::ItemBoundable.
|
inline |
Returns a representation of space that encloses this Node
|
inline |
Returns 0 if this node is a leaf, 1 if a parent of a leaf, and so on; the root node will have the highest level
|
inlineoverridevirtual |
Reimplemented from geos::index::strtree::ItemBoundable.