Definition at line 223 of file NIVissimEdge.h.
Public Member Functions | |
| connection_position_sorter (int edgeid) | |
| constructor | |
| int | operator() (int c1id, int c2id) const |
| comparing operation | |
Private Attributes | |
| int | myEdgeID |
| The id of the edge. | |
| NIVissimEdge::connection_position_sorter::connection_position_sorter | ( | int | edgeid | ) | [explicit] |
| int NIVissimEdge::connection_position_sorter::operator() | ( | int | c1id, | |
| int | c2id | |||
| ) | const |
comparing operation
Definition at line 75 of file NIVissimEdge.cpp.
References NIVissimConnection::dictionary(), NIVissimConnection::getFromEdgeID(), NIVissimConnection::getFromPosition(), NIVissimConnection::getToPosition(), myEdgeID, and SUMOReal.
00076 { 00077 NIVissimConnection *c1 = NIVissimConnection::dictionary(c1id); 00078 NIVissimConnection *c2 = NIVissimConnection::dictionary(c2id); 00079 SUMOReal pos1 = 00080 c1->getFromEdgeID()==myEdgeID 00081 ? c1->getFromPosition() : c1->getToPosition(); 00082 SUMOReal pos2 = 00083 c2->getFromEdgeID()==myEdgeID 00084 ? c2->getFromPosition() : c2->getToPosition(); 00085 return pos1<pos2; 00086 }
int NIVissimEdge::connection_position_sorter::myEdgeID [private] |
1.5.6