Eclipse SUMO - Simulation of Urban MObility
Loading...
Searching...
No Matches
KDTreePartition< E, N, V >::NodeXComparator Class Reference

#include <KDTreePartition.h>

Public Member Functions

bool operator() (const N *firstNode, const N *secondNode) const
 Comparing method for X-axis.
 

Detailed Description

template<class E, class N, class V>
class KDTreePartition< E, N, V >::NodeXComparator

Class to compare (and so sort) nodes by x-coordinate value

Definition at line 97 of file KDTreePartition.h.

Member Function Documentation

◆ operator()()

template<class E , class N , class V >
bool KDTreePartition< E, N, V >::NodeXComparator::operator() ( const N *  firstNode,
const N *  secondNode 
) const
inline

Comparing method for X-axis.

Parameters
[in]firstNodeThe first node
[in]secondNodeThe second node
Returns
true iff first node's x-coordinate is smaller than that of the second
Note
In case of ties: true iff integer interpretation of first node's id is smaller than that of the second

Definition at line 105 of file KDTreePartition.h.


The documentation for this class was generated from the following file: