prohibited_withRestrictions< E, V > Struct Template Reference

#include <SUMOAbstractRouter.h>


Detailed Description

template<class E, class V>
struct prohibited_withRestrictions< E, V >

Definition at line 89 of file SUMOAbstractRouter.h.


Public Member Functions

bool operator() (const E *edge, const V *vehicle)
void prohibit (const std::vector< E * > &toProhibit)

Protected Attributes

std::vector< E * > myProhibited

Member Function Documentation

template<class E, class V>
bool prohibited_withRestrictions< E, V >::operator() ( const E *  edge,
const V *  vehicle 
) [inline]

Definition at line 91 of file SUMOAbstractRouter.h.

References prohibited_withRestrictions< E, V >::myProhibited.

00091                                                             {
00092         if (std::find(myProhibited.begin(), myProhibited.end(), edge)!=myProhibited.end()) {
00093             return true;
00094         }
00095         return edge->prohibits(vehicle);
00096     }

template<class E, class V>
void prohibited_withRestrictions< E, V >::prohibit ( const std::vector< E * > &  toProhibit  )  [inline]

Definition at line 98 of file SUMOAbstractRouter.h.

References prohibited_withRestrictions< E, V >::myProhibited.

00098                                                    {
00099         myProhibited = toProhibit;
00100     }


Field Documentation

template<class E, class V>
std::vector<E*> prohibited_withRestrictions< E, V >::myProhibited [protected]


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

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