Eclipse SUMO - Simulation of Urban MObility
All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Modules Pages
KDTreePartition< E, N, V >::NodeYComparator Class Reference

#include <KDTreePartition.h>

Public Member Functions

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

Detailed Description

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

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

Definition at line 121 of file KDTreePartition.h.

Member Function Documentation

◆ operator()()

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

Comparing method for Y-axis.

Parameters
[in]firstNodeThe first node
[in]secondNodeThe second node
Returns
true iff first node's y-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 129 of file KDTreePartition.h.


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