mirror of
https://github.com/tumic0/GPXSee.git
synced 2025-04-19 19:59:11 +02:00
Compare commits
No commits in common. "66693cd5c9697ca0923f85d82be59e4f39c0a717" and "a3f1d25d63f9ee7947429de67bea2719a4b35564" have entirely different histories.
66693cd5c9
...
a3f1d25d63
@ -53,7 +53,7 @@ public:
|
||||
bool intersects(const RectC &r) const
|
||||
{return (right() >= r.left() && bottom() <= r.top() && left() <= r.right()
|
||||
&& top() >= r.bottom());}
|
||||
bool contains(const Coordinates &c) const
|
||||
bool contains(const Coordinates&c) const
|
||||
{return (c.lon() >= left() && c.lon() <= right() && c.lat() <= top()
|
||||
&& c.lat() >= bottom());}
|
||||
|
||||
|
@ -115,7 +115,7 @@ public:
|
||||
|
||||
/// Count the data elements in this container. This is slow as no internal
|
||||
/// counter is maintained.
|
||||
int Count() const;
|
||||
int Count();
|
||||
|
||||
|
||||
/// Iterator is not remove safe.
|
||||
@ -363,7 +363,7 @@ protected:
|
||||
void* a_context) const;
|
||||
void RemoveAllRec(Node* a_node);
|
||||
void Reset();
|
||||
void CountRec(Node* a_node, int& a_count) const;
|
||||
void CountRec(Node* a_node, int& a_count);
|
||||
|
||||
/// Root of tree
|
||||
Node* m_root;
|
||||
@ -473,7 +473,7 @@ int RTREE_QUAL::Search(const ELEMTYPE a_min[NUMDIMS], const ELEMTYPE a_max[NUMDI
|
||||
|
||||
|
||||
RTREE_TEMPLATE
|
||||
int RTREE_QUAL::Count() const
|
||||
int RTREE_QUAL::Count()
|
||||
{
|
||||
int count = 0;
|
||||
CountRec(m_root, count);
|
||||
@ -483,7 +483,7 @@ int RTREE_QUAL::Count() const
|
||||
|
||||
|
||||
RTREE_TEMPLATE
|
||||
void RTREE_QUAL::CountRec(Node* a_node, int& a_count) const
|
||||
void RTREE_QUAL::CountRec(Node* a_node, int& a_count)
|
||||
{
|
||||
if (a_node->IsInternalNode()) { // not a leaf node
|
||||
for (int index = 0; index < a_node->m_count; ++index)
|
||||
|
Loading…
x
Reference in New Issue
Block a user