SUMO - Simulation of Urban MObility
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
MSLane::AnyVehicleIterator Class Reference

#include <MSLane.h>

Collaboration diagram for MSLane::AnyVehicleIterator:
Collaboration graph

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 MSVehicleoperator* ()
 
AnyVehicleIteratoroperator++ ()
 
const MSVehicleoperator-> ()
 
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 MSLanemyLane
 the lane that is being iterated More...
 

Detailed Description

Definition at line 100 of file MSLane.h.

Constructor & Destructor Documentation

MSLane::AnyVehicleIterator::AnyVehicleIterator ( const MSLane lane,
int  i1,
int  i2,
const int  i1End,
const int  i2End,
bool  downstream = true 
)
inline

Definition at line 102 of file MSLane.h.

Member Function Documentation

bool MSLane::AnyVehicleIterator::nextIsMyVehicles ( ) const
private

Definition at line 126 of file MSLane.cpp.

Referenced by operator++().

bool MSLane::AnyVehicleIterator::operator!= ( AnyVehicleIterator const &  other) const
inline

Definition at line 125 of file MSLane.h.

const MSVehicle * MSLane::AnyVehicleIterator::operator* ( )

Definition at line 112 of file MSLane.cpp.

MSLane::AnyVehicleIterator & MSLane::AnyVehicleIterator::operator++ ( )

Definition at line 97 of file MSLane.cpp.

References myDirection, myI1, myI1End, myI2, and nextIsMyVehicles().

const MSVehicle* MSLane::AnyVehicleIterator::operator-> ( )
inline

Definition at line 129 of file MSLane.h.

bool MSLane::AnyVehicleIterator::operator== ( AnyVehicleIterator const &  other) const
inline

Definition at line 118 of file MSLane.h.

References myI1, myI1End, myI2, and myI2End.

Field Documentation

int MSLane::AnyVehicleIterator::myDirection
private

index delta

Definition at line 153 of file MSLane.h.

Referenced by operator++().

bool MSLane::AnyVehicleIterator::myDownstream
private

iteration direction

Definition at line 151 of file MSLane.h.

int MSLane::AnyVehicleIterator::myI1
private

index for myVehicles

Definition at line 143 of file MSLane.h.

Referenced by operator++(), and operator==().

int MSLane::AnyVehicleIterator::myI1End
private

end index for myVehicles

Definition at line 147 of file MSLane.h.

Referenced by operator++(), and operator==().

int MSLane::AnyVehicleIterator::myI2
private

index for myPartialVehicles

Definition at line 145 of file MSLane.h.

Referenced by operator++(), and operator==().

int MSLane::AnyVehicleIterator::myI2End
private

end index for myPartialVehicles

Definition at line 149 of file MSLane.h.

Referenced by operator==().

const MSLane* MSLane::AnyVehicleIterator::myLane
private

the lane that is being iterated

Definition at line 141 of file MSLane.h.


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