Eclipse SUMO - Simulation of Urban MObility
Loading...
Searching...
No Matches
MSPModel_Striping::by_xpos_sorter Class Reference

sorts the persons by position on the lane. If dir is forward, higher x positions come first. More...

#include <MSPModel_Striping.h>

Public Member Functions

 by_xpos_sorter (int dir)
 constructor
bool operator() (const MSPModel_InteractingState *p1, const MSPModel_InteractingState *p2) const
 comparing operation

Private Attributes

const int myDir

Detailed Description

sorts the persons by position on the lane. If dir is forward, higher x positions come first.

Definition at line 402 of file MSPModel_Striping.h.

Constructor & Destructor Documentation

◆ by_xpos_sorter()

MSPModel_Striping::by_xpos_sorter::by_xpos_sorter ( int dir)
inline

constructor

Definition at line 405 of file MSPModel_Striping.h.

References myDir.

Member Function Documentation

◆ operator()()

bool MSPModel_Striping::by_xpos_sorter::operator() ( const MSPModel_InteractingState * p1,
const MSPModel_InteractingState * p2 ) const
inline

comparing operation

Definition at line 409 of file MSPModel_Striping.h.

References MSPModel_InteractingState::getEdgePos(), MSPModel_InteractingState::getID(), and myDir.

Field Documentation

◆ myDir

const int MSPModel_Striping::by_xpos_sorter::myDir
private

Definition at line 417 of file MSPModel_Striping.h.

Referenced by by_xpos_sorter(), and operator()().


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