Eclipse SUMO - Simulation of Urban MObility
Loading...
Searching...
No Matches
ZoneCounter Class Reference

#include <FareModul.h>

Public Member Functions

void addZone (int zoneNumber)
 
int numZones () const
 
 ZoneCounter (unsigned int ct)
 

Private Member Functions

int bitcount (long long int intVal) const
 

Private Attributes

long long int myCount
 

Detailed Description

Definition at line 34 of file FareModul.h.

Constructor & Destructor Documentation

◆ ZoneCounter()

ZoneCounter::ZoneCounter ( unsigned int  ct)
inlineexplicit

Definition at line 37 of file FareModul.h.

Member Function Documentation

◆ addZone()

void ZoneCounter::addZone ( int  zoneNumber)
inline

Definition at line 42 of file FareModul.h.

References bitcount(), fareZoneToRep, getOverlayZone(), and myCount.

Referenced by FareModul::updateFareStateStop().

Here is the caller graph for this function:

◆ bitcount()

int ZoneCounter::bitcount ( long long int  intVal) const
inlineprivate

Definition at line 62 of file FareModul.h.

Referenced by addZone(), and numZones().

Here is the caller graph for this function:

◆ numZones()

int ZoneCounter::numZones ( ) const
inline

Definition at line 56 of file FareModul.h.

References bitcount(), and myCount.

Referenced by FareModul::computePrice(), FareModul::output(), FareModul::updateFareStateAccess(), and FareModul::updateFareStateStop().

Here is the caller graph for this function:

Field Documentation

◆ myCount

long long int ZoneCounter::myCount
private

Definition at line 74 of file FareModul.h.

Referenced by addZone(), and numZones().


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