MSLane::VehPosition Struct Reference

#include <MSLane.h>

Inheritance diagram for MSLane::VehPosition:

binary_function

Detailed Description

Function-object in order to find the vehicle, that has just passed the detector.

Definition at line 81 of file MSLane.h.


Public Member Functions

bool operator() (const MSVehicle *cmp, SUMOReal pos) const
 compares vehicle position to the detector position

Member Function Documentation

bool MSLane::VehPosition::operator() ( const MSVehicle cmp,
SUMOReal  pos 
) const [inline]

compares vehicle position to the detector position

Definition at line 84 of file MSLane.h.

References MSVehicle::getPositionOnLane().

00084                                                                   {
00085             return cmp->getPositionOnLane() >= pos;
00086         }


The documentation for this struct was generated from the following file:

Generated on Wed May 5 00:06:48 2010 for Sumo - Simulation of Urban MObility by  doxygen 1.5.6