![]() |
SUMO - Simulation of Urban MObility
|
#include <MSLane.h>
Public Member Functions | |
AnyVehicleIterator (const MSLane *lane, int i1, int i2, const int i1End, const int i2End, 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 More... | |
bool | myDownstream |
iteration direction More... | |
int | myI1 |
index for myVehicles More... | |
int | myI1End |
end index for myVehicles More... | |
int | myI2 |
index for myPartialVehicles More... | |
int | myI2End |
end index for myPartialVehicles More... | |
const MSLane * | myLane |
the lane that is being iterated More... | |
|
inline |
|
private |
Definition at line 127 of file MSLane.cpp.
References myDownstream, myI1, myI1End, myI2, myI2End, myLane, MSLane::myPartialVehicles, and MSLane::myVehicles.
Referenced by operator*(), and operator++().
|
inline |
const MSVehicle * MSLane::AnyVehicleIterator::operator* | ( | ) |
Definition at line 113 of file MSLane.cpp.
References myI1, myI1End, myI2, myLane, MSLane::myPartialVehicles, MSLane::myVehicles, and nextIsMyVehicles().
MSLane::AnyVehicleIterator & MSLane::AnyVehicleIterator::operator++ | ( | ) |
Definition at line 98 of file MSLane.cpp.
References myDirection, myI1, myI1End, myI2, and nextIsMyVehicles().
|
inline |
Definition at line 129 of file MSLane.h.
References operator*().
|
inline |
|
private |
|
private |
|
private |
index for myVehicles
Definition at line 143 of file MSLane.h.
Referenced by nextIsMyVehicles(), operator*(), operator++(), and operator==().
|
private |
end index for myVehicles
Definition at line 147 of file MSLane.h.
Referenced by nextIsMyVehicles(), operator*(), operator++(), and operator==().
|
private |
index for myPartialVehicles
Definition at line 145 of file MSLane.h.
Referenced by nextIsMyVehicles(), operator*(), operator++(), and operator==().
|
private |
end index for myPartialVehicles
Definition at line 149 of file MSLane.h.
Referenced by nextIsMyVehicles(), and operator==().
|
private |
the lane that is being iterated
Definition at line 141 of file MSLane.h.
Referenced by nextIsMyVehicles(), and operator*().