Eclipse SUMO - Simulation of Urban MObility
NBTurningDirectionsComputer Class Reference

#include <NBAlgorithms.h>

Collaboration diagram for NBTurningDirectionsComputer:

Data Structures

struct  Combination
 Stores the information about the angle between an incoming ("from") and an outgoing ("to") edge. More...
 
class  combination_by_angle_sorter
 Sorts "Combination"s by decreasing angle. More...
 

Static Public Member Functions

static void computeTurnDirections (NBNodeCont &nc, bool warn=true)
 Computes turnaround destinations for all edges (if exist) More...
 
static void computeTurnDirectionsForNode (NBNode *node, bool warn)
 Computes turnaround destinations for all incoming edges of the given nodes (if any) More...
 

Detailed Description

Definition at line 46 of file NBAlgorithms.h.

Member Function Documentation

◆ computeTurnDirections()

void NBTurningDirectionsComputer::computeTurnDirections ( NBNodeCont nc,
bool  warn = true 
)
static

Computes turnaround destinations for all edges (if exist)

Parameters
[in]ncThe container of nodes to loop along
[in]warnWhether warnings shall be issued

Definition at line 48 of file NBAlgorithms.cpp.

References NBNodeCont::begin(), computeTurnDirectionsForNode(), and NBNodeCont::end().

Referenced by NBNetBuilder::compute().

◆ computeTurnDirectionsForNode()

void NBTurningDirectionsComputer::computeTurnDirectionsForNode ( NBNode node,
bool  warn 
)
static

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