![]() |
Eclipse SUMO - Simulation of Urban MObility
|
AnyVehicleIterator is a structure, which manages the iteration through all vehicles on the lane, that may be of importance for the car-following dynamics along that lane. The relevant types of vehicles are: 1) vehicles with their front on the lane (myVehicles), 2) vehicles intersecting the lane but with front on another lane (myPartialVehicles) More...
#include <MSLane.h>
Public Member Functions | |
| AnyVehicleIterator (const MSLane *lane, int i1, int i2, int i3, const int i1End, const int i2End, const int i3End, bool downstream=true) | |
| bool | operator!= (AnyVehicleIterator const &other) const |
| const MSVehicle * | operator* () |
| AnyVehicleIterator & | operator++ () |
| const MSVehicle * | operator-> () |
| bool | operator== (AnyVehicleIterator const &other) const |
Private Member Functions | |
| bool | nextIsMyVehicles () const |
Private Attributes | |
| int | myDirection |
| index delta | |
| bool | myDownstream |
| iteration direction | |
| int | myI1 |
| index for myVehicles | |
| int | myI1End |
| end index for myVehicles | |
| int | myI2 |
| index for myPartialVehicles | |
| int | myI2End |
| end index for myPartialVehicles | |
| int | myI3 |
| index for myTmpVehicles | |
| int | myI3End |
| end index for myTmpVehicles | |
| const MSLane * | myLane |
| the lane that is being iterated | |
AnyVehicleIterator is a structure, which manages the iteration through all vehicles on the lane, that may be of importance for the car-following dynamics along that lane. The relevant types of vehicles are: 1) vehicles with their front on the lane (myVehicles), 2) vehicles intersecting the lane but with front on another lane (myPartialVehicles)
In the context of retrieving linkLeaders during lane changing a third group of vehicles is checked: 3) vehicles processed during lane changing (myTmpVehicles)
|
inline |
|
private |
Definition at line 204 of file MSLane.cpp.
References DEBUG_COND2, Named::getID(), MSVehicle::getPositionOnLane(), and SIMTIME.
|
inline |
| const MSVehicle * MSLane::AnyVehicleIterator::operator* | ( | ) |
Definition at line 187 of file MSLane.cpp.
| MSLane::AnyVehicleIterator & MSLane::AnyVehicleIterator::operator++ | ( | ) |
Definition at line 170 of file MSLane.cpp.
|
inline |
|
inline |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
end index for myPartialVehicles
Definition at line 186 of file MSLane.h.
Referenced by operator==().
|
private |
|
private |
|
private |