Eclipse SUMO - Simulation of Urban MObility
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 More...
 
bool operator() (const PState *p1, const PState *p2) const
 comparing operation More...
 

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 432 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 435 of file MSPModel_Striping.h.

Member Function Documentation

◆ operator()()

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

comparing operation

Definition at line 439 of file MSPModel_Striping.h.

References MSPModel_Striping::PState::getID(), myDir, and MSPModel_Striping::PState::myRelX.

Field Documentation

◆ myDir

const int MSPModel_Striping::by_xpos_sorter::myDir
private

Definition at line 447 of file MSPModel_Striping.h.

Referenced by operator()().


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