NBContHelper::node_with_incoming_finder Class Reference

#include <NBContHelper.h>


Detailed Description

Definition at line 217 of file NBContHelper.h.


Public Member Functions

 node_with_incoming_finder (const NBEdge *const e)
 constructor
bool operator() (const NBNode *const n) const

Private Member Functions

node_with_incoming_finderoperator= (const node_with_incoming_finder &s)
 invalidated assignment operator

Private Attributes

const NBEdge *const myEdge

Constructor & Destructor Documentation

NBContHelper::node_with_incoming_finder::node_with_incoming_finder ( const NBEdge *const   e  ) 

constructor

Definition at line 138 of file NBContHelper.cpp.

00139         : myEdge(e) {}


Member Function Documentation

bool NBContHelper::node_with_incoming_finder::operator() ( const NBNode *const   n  )  const

Definition at line 143 of file NBContHelper.cpp.

References NBNode::getIncomingEdges(), and myEdge.

00143                                                                               {
00144     const EdgeVector &incoming = n->getIncomingEdges();
00145     return std::find(incoming.begin(), incoming.end(), myEdge)!=incoming.end();
00146 }

node_with_incoming_finder& NBContHelper::node_with_incoming_finder::operator= ( const node_with_incoming_finder s  )  [private]

invalidated assignment operator


Field Documentation

Definition at line 225 of file NBContHelper.h.

Referenced by operator()().


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

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