NBJunctionTypesMatrix::range_finder Class Reference


Detailed Description

priority_finder Searches for the named priority in the range container

Definition at line 67 of file NBJunctionTypesMatrix.h.


Public Member Functions

bool operator() (const std::pair< SUMOReal, SUMOReal > &range)
 range_finder (SUMOReal speed)

Private Attributes

SUMOReal mySpeed

Constructor & Destructor Documentation

NBJunctionTypesMatrix::range_finder::range_finder ( SUMOReal  speed  )  [inline, explicit]

constructor

Definition at line 70 of file NBJunctionTypesMatrix.h.

00070 : mySpeed(speed) { }


Member Function Documentation

bool NBJunctionTypesMatrix::range_finder::operator() ( const std::pair< SUMOReal, SUMOReal > &  range  )  [inline]

the comparing function

Definition at line 73 of file NBJunctionTypesMatrix.h.

References mySpeed.

00073                                                                   {
00074             return mySpeed>=range.first && mySpeed<range.second;
00075         }


Field Documentation

Definition at line 78 of file NBJunctionTypesMatrix.h.

Referenced by operator()().


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

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