Eclipse SUMO - Simulation of Urban MObility
NBNodesEdgesSorter::crossing_by_junction_angle_sorter Class Reference

Sorts crossings by minimum clockwise clockwise edge angle. Use the ordering found in myAllEdges of the given node. More...

#include <NBAlgorithms.h>

Public Member Functions

 crossing_by_junction_angle_sorter (const NBNode *node, const EdgeVector &ordering)
 
int operator() (const std::unique_ptr< NBNode::Crossing > &c1, const std::unique_ptr< NBNode::Crossing > &c2) const
 

Private Member Functions

int getMinRank (const EdgeVector &e) const
 retrieves the minimum index in myAllEdges More...
 
crossing_by_junction_angle_sorteroperator= (const crossing_by_junction_angle_sorter &s)
 invalidated assignment operator More...
 

Private Attributes

EdgeVector myOrdering
 

Detailed Description

Sorts crossings by minimum clockwise clockwise edge angle. Use the ordering found in myAllEdges of the given node.

Definition at line 110 of file NBAlgorithms.h.

Constructor & Destructor Documentation

◆ crossing_by_junction_angle_sorter()

NBNodesEdgesSorter::crossing_by_junction_angle_sorter::crossing_by_junction_angle_sorter ( const NBNode node,
const EdgeVector ordering 
)
explicit

Definition at line 595 of file NBAlgorithms.cpp.

References myOrdering.

Member Function Documentation

◆ getMinRank()

int NBNodesEdgesSorter::crossing_by_junction_angle_sorter::getMinRank ( const EdgeVector e) const
inlineprivate

retrieves the minimum index in myAllEdges

Definition at line 126 of file NBAlgorithms.h.

References MIN2(), and myOrdering.

Referenced by operator()().

Here is the caller graph for this function:

◆ operator()()

int NBNodesEdgesSorter::crossing_by_junction_angle_sorter::operator() ( const std::unique_ptr< NBNode::Crossing > &  c1,
const std::unique_ptr< NBNode::Crossing > &  c2 
) const
inline

Definition at line 114 of file NBAlgorithms.h.

References getMinRank().

◆ operator=()

crossing_by_junction_angle_sorter& NBNodesEdgesSorter::crossing_by_junction_angle_sorter::operator= ( const crossing_by_junction_angle_sorter s)
private

invalidated assignment operator

Field Documentation

◆ myOrdering

EdgeVector NBNodesEdgesSorter::crossing_by_junction_angle_sorter::myOrdering
private

Definition at line 136 of file NBAlgorithms.h.

Referenced by crossing_by_junction_angle_sorter(), and getMinRank().


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