30#define UNUSED_PARAMETER(x) ((void)(x))
36#define FALLTHROUGH [[fallthrough]]
41#define FALLTHROUGH __attribute__((fallthrough))
45#define SUMO_MAX_CONNECTIONS 256
94 return MIN2(c, a < b ? a : b);
101 return MAX2(c, a > b ? a : b);
150#define DEBUGOUT(cond, msg) if (cond) {std::ostringstream oss; oss << msg; std::cout << oss.str();}
153double truncate(
double x,
int fractionBits);
156double roundBits(
double x,
int fractionBits);
T MIN4(T a, T b, T c, T d)
int GUIDesignDialogButtonsHeight
the default height for dialog buttons
const double INVALID_DOUBLE
invalid double
double roundDecimalToEven(double x, int precision)
round to the given number of decimal digits (bankers rounding)
int getScalingQuota(double frac, int loaded)
Returns the number of instances of the current object that shall be emitted given the number of loade...
const double SUMO_const_laneWidth
const double SUMO_const_quarterLaneWidth
double truncate(double x, int fractionBits)
discrds mantissa bits beyond the given number
const int INVALID_INT
invalid int
const double SUMO_const_waitingPersonDepth
int gPrecision
the precision for floating point outputs
double gWeightsRandomFactor
double roundBits(double x, int fractionBits)
round to the given number of mantissa bits beyond the given number
std::pair< int, double > MMVersion
(M)ajor/(M)inor version for written networks and default version for loading
double gWeightsWalkOppositeFactor
const double SUMO_const_laneMarkWidth
const double SUMO_const_haltingSpeed
the speed threshold at which vehicles are considered as halting
std::string gLanguage
the language for GUI elements and messages
const double SUMO_const_halfLaneWidth
T MAX4(T a, T b, T c, T d)
const double SUMO_const_waitingContainerWidth
const MMVersion NETWORK_VERSION(1, 20)
bool gIgnoreUnknownVClass
double roundDecimal(double x, int precision)
round to the given number of decimal digits
const double SUMO_const_waitingPersonWidth
bool gDebugFlag1
global utility flags for debugging
const double SUMO_const_waitingContainerDepth
int GUIDesignHeight
the default height for GUI elements