|
HAL
|
#include <net_layout_junction.h>

Public Types | |
| enum | HVIndex { Horizontal , Vertical } |
Public Member Functions | |
| LaneIndex (HVIndex ihv, int ilane) | |
| operator int () const | |
| LaneIndex & | operator++ () |
| LaneIndex & | operator-- () |
| HVIndex | hvIndex () const |
| int | laneIndex () const |
| bool | isHorizontal () const |
| bool | isVertical () const |
Static Public Member Functions | |
| static LaneIndex | horizontal (int ilane) |
| static LaneIndex | vertical (int ilane) |
Friends | |
| uint | qHash (const LaneIndex &ri) |
Condensed lane index comprises information whether road is horizontal or vertical
Definition at line 29 of file net_layout_junction.h.
| Enumerator | |
|---|---|
| Horizontal | |
| Vertical | |
Definition at line 34 of file net_layout_junction.h.
|
inline |
Constructor
| ihv | Horizontal or Vertical |
| ilane | Lane index |
Definition at line 41 of file net_layout_junction.h.
Referenced by horizontal(), and vertical().
|
inlinestatic |
Construct horizontal lane
| ilane | - lane index |
Definition at line 88 of file net_layout_junction.h.
References Horizontal, and LaneIndex().
|
inline |
Getter for road direction
Definition at line 64 of file net_layout_junction.h.
Referenced by isHorizontal(), and isVertical().
|
inline |
Convenience method to check whether road direction is horizontal
Definition at line 76 of file net_layout_junction.h.
References Horizontal, and hvIndex().
|
inline |
Convenience method to check whether road direction is vertical
Definition at line 82 of file net_layout_junction.h.
|
inline |
Getter for lane index
Definition at line 70 of file net_layout_junction.h.
|
inline |
Cast to integer, mainly used as index
Definition at line 46 of file net_layout_junction.h.
|
inline |
Increment to next parallel lane
Definition at line 52 of file net_layout_junction.h.
|
inline |
Decrement to previous parallel lane
Definition at line 58 of file net_layout_junction.h.
|
inlinestatic |
Construct vertical lane
| ilane | - lane index |
Definition at line 94 of file net_layout_junction.h.
References LaneIndex(), and Vertical.
|
friend |
Definition at line 975 of file net_layout_junction.cpp.