IntervalRTreeBranchNode.h
/**********************************************************************
*
* GEOS - Geometry Engine Open Source
* http://geos.osgeo.org
*
* Copyright (C) 2006 Refractions Research Inc.
*
* This is free software; you can redistribute and/or modify it under
* the terms of the GNU Lesser General Public Licence as published
* by the Free Software Foundation.
* See the COPYING file for more information.
*
*
**********************************************************************/
#pragma once
#include <geos/index/intervalrtree/IntervalRTreeNode.h> // inherited
#include <algorithm>
// forward declarations
namespace geos {
namespace index {
class ItemVisitor;
}
}
namespace geos {
namespace index {
namespace intervalrtree {
class IntervalRTreeBranchNode : public IntervalRTreeNode {
private:
const IntervalRTreeNode* node1;
const IntervalRTreeNode* node2;
protected:
public:
IntervalRTreeBranchNode(const IntervalRTreeNode* n1, const IntervalRTreeNode* n2)
: IntervalRTreeNode(std::min(n1->getMin(), n2->getMin()), std::max(n1->getMax(), n2->getMax())),
node1(n1),
node2(n2)
{ }
void query(double queryMin, double queryMax, index::ItemVisitor* visitor) const override;
};
} // geos::intervalrtree
} // geos::index
} // geos
geos::index::ItemVisitor
A visitor for items in an index.
Definition ItemVisitor.h:28
geos::index::intervalrtree
Contains classes that implement a static index on a set of 1-dimensional intervals,...
Definition IntervalRTreeBranchNode.h:32
geos::index
Provides classes for various kinds of spatial indexes.
Definition CleanCoverage.h:39
geos
Basic namespace for all GEOS functionalities.
Definition geos.h:38