SUMO - Simulation of Urban MObility
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
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 EdgeVector &ordering)
 
int operator() (const NBNode::Crossing &c1, const NBNode::Crossing &c2) const
 

Private Member Functions

size_t 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

const EdgeVectormyOrdering
 

Detailed Description

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

Definition at line 118 of file NBAlgorithms.h.

Constructor & Destructor Documentation

NBNodesEdgesSorter::crossing_by_junction_angle_sorter::crossing_by_junction_angle_sorter ( const EdgeVector ordering)
inlineexplicit

Definition at line 120 of file NBAlgorithms.h.

Member Function Documentation

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

retrieves the minimum index in myAllEdges

Definition at line 127 of file NBAlgorithms.h.

References MIN2(), and myOrdering.

Referenced by operator()().

int NBNodesEdgesSorter::crossing_by_junction_angle_sorter::operator() ( const NBNode::Crossing c1,
const NBNode::Crossing c2 
) const
inline

Definition at line 121 of file NBAlgorithms.h.

References NBNode::Crossing::edges, and getMinRank().

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

const EdgeVector& NBNodesEdgesSorter::crossing_by_junction_angle_sorter::myOrdering
private

Definition at line 137 of file NBAlgorithms.h.

Referenced by getMinRank().


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