GEOS
3.9.1dev
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
include
geos
index
intervalrtree
IntervalRTreeBranchNode.h
Go to the documentation of this file.
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_INTERVALRTREEBRANCHNODE_H
17
#define GEOS_INDEX_INTERVALRTREE_INTERVALRTREEBRANCHNODE_H
18
19
#include <
geos/index/intervalrtree/IntervalRTreeNode.h
>
// inherited
20
21
#include <algorithm>
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
IntervalRTreeBranchNode
:
public
IntervalRTreeNode
{
36
private
:
37
const
IntervalRTreeNode
*
node1
;
38
const
IntervalRTreeNode
*
node2
;
39
40
protected
:
41
public
:
42
IntervalRTreeBranchNode
(
const
IntervalRTreeNode
* n1,
const
IntervalRTreeNode
* n2)
43
:
IntervalRTreeNode
(std::min(n1->getMin(), n2->getMin()), std::max(n1->getMax(), n2->getMax())),
44
node1(n1),
45
node2(n2)
46
{ }
47
48
void
query(
double
queryMin,
double
queryMax,
index::ItemVisitor
* visitor)
const override
;
49
};
50
51
}
// geos::intervalrtree
52
}
// geos::index
53
}
// geos
54
55
#endif // GEOS_INDEX_INTERVALRTREE_INTERVALRTREEBRANCHNODE_H
56
geos::index::intervalrtree::IntervalRTreeBranchNode::node2
const IntervalRTreeNode * node2
Definition:
IntervalRTreeBranchNode.h:38
geos::index::intervalrtree::IntervalRTreeBranchNode::node1
const IntervalRTreeNode * node1
Definition:
IntervalRTreeBranchNode.h:37
geos::index::ItemVisitor
A visitor for items in an index.
Definition:
ItemVisitor.h:29
geos
Basic namespace for all GEOS functionalities.
Definition:
IndexedNestedRingTester.h:26
geos::index::intervalrtree::IntervalRTreeNode
Definition:
IntervalRTreeNode.h:35
geos::index::intervalrtree::IntervalRTreeBranchNode::IntervalRTreeBranchNode
IntervalRTreeBranchNode(const IntervalRTreeNode *n1, const IntervalRTreeNode *n2)
Definition:
IntervalRTreeBranchNode.h:42
IntervalRTreeNode.h
geos::index::intervalrtree::IntervalRTreeBranchNode
Definition:
IntervalRTreeBranchNode.h:35
Generated by
1.8.11