Eclipse SUMO - Simulation of Urban MObility
ZoneCounter Class Reference

#include <FareModul.h>

Collaboration diagram for ZoneCounter:

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 35 of file FareModul.h.

Constructor & Destructor Documentation

◆ ZoneCounter()

ZoneCounter::ZoneCounter ( unsigned int  ct)
inlineexplicit

Definition at line 38 of file FareModul.h.

Member Function Documentation

◆ addZone()

void ZoneCounter::addZone ( int  zoneNumber)
inline

Definition at line 43 of file FareModul.h.

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

Referenced by FareModul::updateFareStateStop().

◆ bitcount()

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

Definition at line 63 of file FareModul.h.

Referenced by addZone(), and numZones().

◆ numZones()

int ZoneCounter::numZones ( ) const
inline

Field Documentation

◆ myCount

long long int ZoneCounter::myCount
private

Definition at line 75 of file FareModul.h.

Referenced by addZone(), and numZones().


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