GEOS  3.8.0dev
IntervalRTreeLeafNode.h
1 /**********************************************************************
2  *
3  * GEOS - Geometry Engine Open Source
4  * http://geos.osgeo.org
5  *
6  * Copyright (C) 2006 Refractions Research Inc.
7  *
8  * This is free software; you can redistribute and/or modify it under
9  * the terms of the GNU Lesser General Public Licence as published
10  * by the Free Software Foundation.
11  * See the COPYING file for more information.
12  *
13  *
14  **********************************************************************/
15 
16 #ifndef GEOS_INDEX_INTERVALRTREE_INTERVALRTREELEAFNODE_H
17 #define GEOS_INDEX_INTERVALRTREE_INTERVALRTREELEAFNODE_H
18 
19 
20 #include <geos/index/intervalrtree/IntervalRTreeNode.h> // inherited
21 
22 
23 // forward declarations
24 namespace geos {
25 namespace index {
26 class ItemVisitor;
27 }
28 }
29 
30 
31 namespace geos {
32 namespace index {
33 namespace intervalrtree {
34 
35 class IntervalRTreeLeafNode : public IntervalRTreeNode {
36 private:
38  void* item;
39 
40 protected:
41 public:
42 
44  IntervalRTreeLeafNode(double p_min, double p_max, void* p_item)
45  : IntervalRTreeNode(p_min, p_max),
46  item(p_item)
47  { }
48 
49  ~IntervalRTreeLeafNode() override
50  {
51  }
52 
53  void query(double queryMin, double queryMax, index::ItemVisitor* visitor) const override;
54 
55 };
56 
57 } // geos::intervalrtree
58 } // geos::index
59 } // geos
60 
61 #endif // GEOS_INDEX_INTERVALRTREE_INTERVALRTREELEAFNODE_H
Basic namespace for all GEOS functionalities.
Definition: IndexedNestedRingTester.h:25