GEOS 3.15.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#pragma once
17
18#include <geos/export.h>
19#include <geos/index/intervalrtree/IntervalRTreeNode.h> // inherited
20
21
22// forward declarations
23namespace geos {
24namespace index {
25class ItemVisitor;
26}
27}
28
29
30namespace geos {
31namespace index {
32namespace intervalrtree {
33
34class GEOS_DLL IntervalRTreeLeafNode : public IntervalRTreeNode {
35private:
37 void* item;
38
39protected:
40public:
41
43 IntervalRTreeLeafNode(double p_min, double p_max, void* p_item)
44 : IntervalRTreeNode(p_min, p_max),
45 item(p_item)
46 { }
47
48 ~IntervalRTreeLeafNode() override
49 {
50 }
51
52 void query(double queryMin, double queryMax, index::ItemVisitor* visitor) const override;
53
54};
55
56} // geos::intervalrtree
57} // geos::index
58} // geos
59
Basic namespace for all GEOS functionalities.
Definition geos.h:38