19 #ifndef GEOS_IDX_QUADTREE_NODEBASE_H 20 #define GEOS_IDX_QUADTREE_NODEBASE_H 29 #pragma warning(disable: 4251) // warning C4251: needs to have dll-interface to be used by clients of class 71 std::vector<void*>& getItems();
78 std::vector<void*>& addAllItems(std::vector<void*>& resultItems)
const;
80 virtual void addAllItemsFromOverlapping(
const geom::Envelope& searchEnv,
81 std::vector<void*>& resultItems)
const;
83 unsigned int depth()
const;
87 size_t getNodeCount()
const;
89 virtual std::string toString()
const;
102 bool hasItems()
const;
104 bool hasChildren()
const;
106 bool isPrunable()
const;
125 virtual bool isSearchMatch(
const geom::Envelope& searchEnv)
const = 0;
132 NodeBase::hasChildren()
const 134 for(
const auto& subnode : subnodes) {
135 if(subnode !=
nullptr) {
144 NodeBase::isPrunable()
const 146 return !(hasChildren() || hasItems());
150 NodeBase::hasItems()
const 152 return ! items.empty();
163 #endif // GEOS_IDX_QUADTREE_NODEBASE_H An Envelope defines a rectangulare region of the 2D coordinate plane.
Coordinate is the lightweight class used to store coordinates.
The base class for nodes in a Quadtree.
A visitor for items in an index.
Basic namespace for all GEOS functionalities.
std::array< Node *, 4 > subnodes
std::vector< void * > items
Actual items are NOT owned by this class.