SUMO - Simulation of Urban MObility
StdDefs.h File Reference
#include <config.h>
#include <string>
#include <cmath>
#include <limits>
Include dependency graph for StdDefs.h:

Go to the source code of this file.

Macros

#define SUMO_MAX_CONNECTIONS   256
 the maximum number of connections across an intersection More...
 
#define UNUSED_PARAMETER(x)   ((void)(x))
 

Functions

template<typename T >
T ISNAN (T a)
 
template<typename T >
T MAX2 (T a, T b)
 
template<typename T >
T MAX3 (T a, T b, T c)
 
template<typename T >
T MAX4 (T a, T b, T c, T d)
 
template<typename T >
T MIN2 (T a, T b)
 
template<typename T >
T MIN3 (T a, T b, T c)
 
template<typename T >
T MIN4 (T a, T b, T c, T d)
 
double roundBits (double x, int fractionBits)
 round to the given number of mantissa bits beyond the given number More...
 
double truncate (double x, int fractionBits)
 discrds mantissa bits beyond the given number More...
 

Variables

bool gDebugFlag1
 global utility flags for debugging More...
 
bool gDebugFlag2
 
bool gDebugFlag3
 
bool gDebugFlag4
 
std::string gDebugSelectedVehicle
 
int gPrecision
 the precision for floating point outputs More...
 
int gPrecisionGeo
 
const double INVALID_DOUBLE = std::numeric_limits<double>::max()
 
const double SUMO_const_halfLaneAndOffset = (double)(3.2 / 2. + .1)
 
const double SUMO_const_halfLaneWidth = (double) 1.6
 
const double SUMO_const_haltingSpeed = (double) 0.1
 the speed threshold at which vehicles are considered as halting More...
 
const double SUMO_const_laneOffset = (double) .1
 
const double SUMO_const_laneWidth = (double) 3.2
 
const double SUMO_const_laneWidthAndOffset = (double) 3.3
 
const double SUMO_const_quarterLaneWidth = (double) 0.8
 

Detailed Description

Author
Daniel Krajzewicz
Laura Bieker
Michael Behrisch
Jakob Erdmann
Date
Fri, 29.04.2005
Version
Id
StdDefs.h 25756 2017-08-31 08:34:26Z namdre

Definition in file StdDefs.h.

Macro Definition Documentation

#define SUMO_MAX_CONNECTIONS   256

the maximum number of connections across an intersection

Definition at line 43 of file StdDefs.h.

Referenced by NLJunctionControlBuilder::addLogicItem(), NBNode::computeLogic(), and MSRailCrossing::MSRailCrossing().

#define UNUSED_PARAMETER (   x)    ((void)(x))

Definition at line 40 of file StdDefs.h.

Referenced by MSLeaderDistanceInfo::addLeader(), MSCriticalFollowerDistanceInfo::addLeader(), MSPModel::blockedAtDist(), MSRailCrossing::changeStepAndDuration(), MSOffTrafficLightLogic::changeStepAndDuration(), MSRailSignal::changeStepAndDuration(), combCallback(), combineCallback(), HelpersHBEFA::compute(), HelpersHBEFA3::compute(), RODFNet::computeRoutesFor(), MSAbstractLaneChangeModel::decideDirection(), GNEReferenceCounter::decRef(), MSDetectorFileOutput::detectorUpdate(), GUIVehicle::drawAction_drawLinkItems(), GUIBaseVehicle::drawAction_drawVehicleBrakeLight(), GUITriggeredRerouter::drawGL(), GUIGlObject::drawGLAdditional(), MSAbstractLaneChangeModel::endLaneChangeManeuver(), NIImporter_OpenDrive::findWidthSplit(), FXSingleEventThread::FXSingleEventThread(), FXEX::FXThreadEvent::FXThreadEvent(), NIImporter_OpenDrive::geomFromArc(), NIImporter_OpenDrive::geomFromLine(), NIImporter_OpenDrive::geomFromParamPoly(), NIImporter_OpenDrive::geomFromPoly(), NIImporter_OpenDrive::geomFromSpiral(), RODFDetectorCon::getAggFlowFor(), PollutantsInterface::Helper::getAmitranVehicleClass(), PollutantsInterface::Helper::getClass(), PollutantsInterface::Helper::getClassByName(), PollutantsInterface::Helper::getEuroClass(), MSInternalJunction::getFoeInternalLanes(), MSInternalJunction::getFoeLinks(), MSJunctionLogic::getFoesFor(), PollutantsInterface::Helper::getFuel(), MSJunctionLogic::getIsCont(), PHEMCEP::GetMaxAccel(), GNEEdge::getParameterWindow(), GNEConnection::getParameterWindow(), GNEAdditional::getParameterWindow(), MSJunctionLogic::getResponseFor(), GUIGlObject::getTypeParameterWindow(), PollutantsInterface::Helper::getWeight(), NBHeightMapper::getZ(), MSPModel::hasPedestrians(), GNEReferenceCounter::incRef(), MSLCM_LC2013::inform(), MSCFModel_Wiedemann::interactionGap(), MEVehicle::isStoppedInRange(), MSPModel_NonInteracting::MSPModel_NonInteracting(), NBLoadedSUMOTLDef::myCompute(), NIImporter_DlrNavteq::NamesHandler::NamesHandler(), MSPModel::nextBlocking(), NIImporter_ArcView::NIImporter_ArcView(), NIImporter_Vissim::NIImporter_Vissim(), NIImporter_DlrNavteq::NodesHandler::NodesHandler(), MSMeanData::MeanDataValues::notifyEnter(), MSMeanData_Net::MSLaneMeanDataValues::notifyEnter(), MSMoveReminder::notifyEnter(), MSMeanData::MeanDataValueTracker::notifyEnter(), MSDevice_SSM::notifyEnter(), MSMoveReminder::notifyLeave(), MSDevice_SSM::notifyLeave(), MSMoveReminder::notifyMove(), MSDevice_SSM::notifyMove(), MSMoveReminder::notifyMoveInternal(), NBNode::edge_by_direction_sorter::operator()(), RGBColor::parseColorReporting(), MSLaneSpeedTrigger::processCommand(), GNEDeleteFrame::removeAttributeCarrier(), NBTrafficLightDefinition::removeConnection(), MEVehicle::replaceRoute(), MSMeanData::resetOnly(), MSAbstractLaneChangeModel::saveBlockerLength(), GUIViewTraffic::saveFrame(), GUISUMOAbstractView::saveFrame(), GUIMainWindow::sendBlockingEvent(), MSCFModel::setImperfection(), MSDevice::setParameter(), MSAbstractLaneChangeModel::setParameter(), GUIDialog_EditViewport::setValues(), NBTrafficLightDefinition::shiftTLConnectionLaneIndex(), FXSingleEventThread::signal(), FXEX::FXThreadEvent::signal(), toString(), toString< LaneChangeAction >(), toString< LaneChangeModel >(), toString< LaneSpreadFunction >(), toString< LateralAlignment >(), toString< LinkDirection >(), toString< LinkState >(), toString< SUMOVehicleClass >(), toString< SumoXMLAttr >(), toString< SumoXMLEdgeFunc >(), toString< SumoXMLNodeType >(), toString< SumoXMLTag >(), toString< TrafficLightType >(), NIImporter_DlrNavteq::TrafficlightsHandler::TrafficlightsHandler(), MSAbstractLaneChangeModel::updateExpectedSublaneSpeeds(), TraCIServerAPI_Vehicle::vtdMap_matchingRoutePosition(), MSLCM_DK2008::wantsChange(), MSAbstractLaneChangeModel::wantsChange(), MSAbstractLaneChangeModel::wantsChangeSublane(), MSLCM_DK2008::wantsChangeToLeft(), MSLCM_DK2008::wantsChangeToRight(), and MSInstantInductLoop::writeXMLOutput().

Function Documentation

template<typename T >
T MAX2 ( T  a,
T  b 
)
inline

Definition at line 74 of file StdDefs.h.

Referenced by MSLCM_LC2013::_patchSpeed(), MSLCM_SL2015::_patchSpeed(), MSCFModel_Kerner::_v(), MSCFModel_Wiedemann::_v(), MSCFModel_IDM::_v(), MSLCM_LC2013::_wantsChange(), MSLCM_SL2015::_wantsChangeSublane(), MSPModel_Striping::addCrossingVehs(), MSRouteHandler::addStop(), MSE2Collector::aggregateOutputValues(), AStarRouter< MSEdge, SUMOVehicle, prohibited_withPermissions< MSEdge, SUMOVehicle > >::AStarRouter(), IDSupplier::avoid(), NBNode::bezierControlPoints(), NIVisumTL::build(), GUIViewTraffic::buildColorRainbow(), GNEViewNet::buildColorRainbow(), RODFNet::buildEdgeFlowMap(), GUIViewTraffic::buildViewToolBars(), GNEViewNet::buildViewToolBars(), NBNode::buildWalkingAreas(), MSBaseVehicle::calculateArrivalParams(), GawronCalculator< R, E, V >::calculateProbabilities(), MSE2Collector::calculateTimeLossAndTimeOnDetector(), RGBColor::changedBrightness(), MSLaneChanger::changeOpposite(), MSLCM_SL2015::checkBlocking(), MSLCM_SL2015::checkBlockingVehicles(), MELoop::checkCar(), MSLaneChanger::checkChange(), MSDevice_SSM::checkConflictEntryAndExit(), NBEdgeCont::checkGrade(), MSVehicle::checkLinkLeader(), MSE2Collector::checkPositioning(), MSVehicle::checkRewindLinkLanes(), MSLCM_SL2015::checkStrategicChange(), MSVehicle::collisionStopTime(), NBNodeShapeComputer::compute(), Bresenham::compute(), HelpersHBEFA::compute(), HelpersHBEFA3::compute(), HelpersPHEMlight::compute(), NBNetBuilder::compute(), NBTrafficLightDefinition::computeBrakingTime(), MSVehicleType::computeChosenSpeedDeviation(), MSLCM_SL2015::computeGapFactor(), NBNode::computeLanes2Lanes(), NBNodeShapeComputer::computeNodeShapeDefault(), NBNodeTypeComputer::computeNodeTypes(), NBNodeTypeComputer::computeSingleNodeType(), MSLCM_SL2015::computeSpeedLat(), CState::computeTranshipTime(), MSPModel_NonInteracting::PState::computeWalkingTime(), NBPTStop::computExtent(), MSSOTLTrafficLightLogic::countVehicles(), MSCFModel_Krauss::dawdle(), MSCFModel_Daniel1::dawdle(), MSCFModel_SmartSK::dawdle(), MSCFModel_KraussOrig1::dawdle(), MSCFModel_KraussX::dawdleX(), MSDevice_SSM::determineTTCandDRAC(), MSCFModel::distAfterTime(), GUIVehicle::drawAction_drawVehicleBlinker(), GUIVehicle::drawBestLanes(), GUIPolygon::drawGL(), GUILane::drawGL(), MSCFModel::estimateSpeedAfterDistance(), METriggeredCalibrator::execute(), MSCalibrator::execute(), MSVehicle::executeMove(), NBEdge::expandableBy(), NBEdge::extendGeometryAtNode(), MSCFModel_KraussOrig1::followSpeed(), MSCFModel_PWag2009::followSpeed(), MSCFModel_SmartSK::followSpeed(), MSCFModel_Krauss::followSpeed(), MSCFModel_Rail::freeSpeed(), MSCFModel::freeSpeed(), MSCFModel::gapExtrapolation(), NBEdgeCont::generateStreetSigns(), NBNode::geometryLike(), GUIMessageWindow::getActiveStringObject(), GUIPerson::getCenteringBoundary(), MEVehicle::getConservativeSpeed(), MSLane::getCriticalLeader(), MSInductLoop::getCurrentOccupancy(), MSEdge::getCurrentTravelTime(), MSVehicle::getDeltaPos(), ROVehicle::getDepartureTime(), MSDevice_Routing::getEffort(), GUIVisualizationSizeSettings::getExaggeration(), MSLane::getFollowersOnConsecutive(), GNEAttributeCarrier::getHigherNumberOfAttributes(), MSBaseVehicle::getImpatience(), MSPModel_Striping::PState::getImpatience(), MSLink::getLeaderInfo(), MSLane::getLeaderOnConsecutive(), MSLane::getLeadersOnConsecutive(), MSLink::getLeaveTime(), ROEdge::getLengthGeometryFactor(), PositionVector::getMaxGrade(), MESegment::getMaxPenaltySeconds(), MSCFModel::getMinimalArrivalTime(), NIImporter_OpenStreetMap::getNeighboringNodes(), MESegment::getNextInsertionTime(), MSLane::getOppositePos(), PositionVector::getOverlapWith(), GUIVehicle::getRightSublaneOnEdge(), MSVehicle::getSafeFollowSpeed(), MSCFModel::getSecureGap(), MSCFModel::getSpeedAfterMaxDecel(), MSLeaderInfo::getSubLanes(), PublicTransportEdge< E, L, N, V >::getTravelTime(), PedestrianEdge< E, L, N, V >::getTravelTime(), ROEdge::getTravelTime(), MEVehicle::getWaitingTime(), MSLink::getZipperSpeed(), GUIDialog_ViewSettings::GUIDialog_ViewSettings(), GUIJunctionWrapper::GUIJunctionWrapper(), MSLane::handleCollisionBetween(), MSVehicle::Influencer::influenceSpeed(), MSLCM_DK2008::informBlocker(), MSLCM_LC2013::informFollower(), MSLCM_SL2015::informFollower(), MSLCM_LC2013::informLeader(), MSLCM_SL2015::informLeader(), MSActuatedTrafficLightLogic::init(), MSLCM_SL2015::initDerivedParameters(), MSTrafficLightLogic::initMesoTLSPenalties(), NIImporter_OpenStreetMap::insertEdge(), MSCFModel_IDM::interactionGap(), MSCFModel::interactionGap(), MSLane::isInsertionSuccess(), NBEdgeCont::joinSameNodeConnectingEdges(), MSLCM_SL2015::keepLatGap(), LandmarkLookupTable< E, V >::LandmarkLookupTable(), SUMORouteLoaderControl::loadNext(), LandmarkLookupTable< E, V >::lowerBound(), MSE2Collector::makeMoveNotification(), MAX3(), MAX4(), MSCFModel::maximumSafeFollowSpeed(), MSCFModel::maximumSafeStopSpeedBallistic(), MSCFModel_KraussPS::maxNextSpeed(), MSCFModel::minNextSpeed(), MSCFModel_Rail::moveHelper(), MSCFModel_Daniel1::moveHelper(), MSCFModel_KraussOrig1::moveHelper(), MSCFModel_KraussX::moveHelper(), MSCFModel_SmartSK::moveHelper(), MSCFModel::moveHelper(), MSPModel_Striping::moveInDirectionOnLane(), NIXMLEdgesHandler::myEndElement(), NIImporter_SUMO::myEndElement(), NIImporter_OpenDrive::myStartElement(), MESegment::newArrival(), MSE2Collector::notifyLeave(), MSMeanData::MeanDataValues::notifyMove(), GNETLSEditorFrame::onCmdPhaseCreate(), GNETLSEditorFrame::onCmdPhaseDelete(), GNEViewNet::onLeftBtnRelease(), NBContHelper::relative_outgoing_edge_sorter::operator()(), NBContHelper::straightness_sorter::operator()(), NBContHelper::relative_incoming_edge_sorter::operator()(), MSPModel_Striping::PState::otherStripe(), MSLCM_LC2013::overtakeDistance(), MSCFModel::passingTime(), NBLoadedSUMOTLDef::patchIfCrossingsAdded(), MSLCM_DK2008::patchSpeed(), MSVehicle::planMoveInternal(), MESegment::prepareDetectorForWriting(), MSLCM_SL2015::prepareStep(), MSE2Collector::processJams(), MSVehicle::processNextStop(), MSDelayBasedTrafficLightLogic::proposeProlongation(), GUIDialog_ViewSettings::rebuildList(), MSEdge::recalcCache(), MESegment::receive(), MESegment::recomputeJamThreshold(), NIImporter_OpenDrive::recomputeWidths(), NIImporter_OpenStreetMap::reconstructLayerElevation(), MSCalibrator::remainingVehicleCapacity(), MESegment::removeCar(), NIImporter_DlrNavteq::TimeRestrictionsHandler::report(), NBEdgeCont::retrievePossiblySplit(), MSLCM_SL2015::saveBlockerLength(), MSLCM_LC2013::saveBlockerLength(), MSE2Collector::selectLanes(), MESegment::send(), GNELane::setMultiColor(), GUILane::setMultiColor(), MSLCM_SL2015::setOwnState(), MESegment::setSpeedForQueue(), GUIMainWindow::setWindowSizeAndPos(), NBEdgeCont::splitAt(), MSCFModel_PWag2009::stopSpeed(), MSCFModel_SmartSK::stopSpeed(), MSCFModel_Wiedemann::stopSpeed(), MSPModel_Striping::PState::stripe(), MSDelayBasedTrafficLightLogic::trySwitch(), AGFreeTime::typeFromHomeDay(), AGFreeTime::typeFromHomeEvening(), AGFreeTime::typeFromHomeNight(), MSVehicle::updateBestLanes(), MSRailCrossing::updateCurrentPhase(), GNEJunction::updateGeometry(), CHBuilder< E, V >::CHInfo::updateLevel(), MSSwarmTrafficLightLogic::updatePheromoneLevels(), MSSwarmTrafficLightLogic::updateSensitivities(), MSVehicle::updateState(), MSVehicleControl::vehicleDeparted(), TraCIServerAPI_Vehicle::vtdMap(), TraCIServerAPI_Vehicle::vtdMap_matchingRoutePosition(), MSPModel_Striping::PState::walk(), MSPerson::MSPersonStage_Walking::walkDistance(), MSLCM_DK2008::wantsChangeToLeft(), MSLCM_DK2008::wantsChangeToRight(), MSVehicle::workOnMoveReminders(), MSMeanData_Net::MSLaneMeanDataValues::write(), ODMatrix::write(), RODFDetectorCon::writeEmitters(), NWWriter_OpenDrive::writeGeomLines(), NWWriter_OpenDrive::writeGeomPP3(), NWWriter_OpenDrive::writeGeomSmooth(), NWWriter_SUMO::writeInternalEdges(), MSQueueExport::writeLane(), NWWriter_OpenDrive::writeNetwork(), RODFDetector::writeSingleSpeedTrigger(), MSInductLoop::writeXMLOutput(), and MSE2Collector::writeXMLOutput().

template<typename T >
T MAX4 ( T  a,
T  b,
T  c,
T  d 
)
inline

Definition at line 102 of file StdDefs.h.

References MAX2().

template<typename T >
T MIN2 ( T  a,
T  b 
)
inline

Definition at line 68 of file StdDefs.h.

Referenced by MSLCM_LC2013::_patchSpeed(), MSLCM_SL2015::_patchSpeed(), MSCFModel_Kerner::_v(), MSCFModel_Wiedemann::_v(), MSLCM_LC2013::_wantsChange(), MSLCM_SL2015::_wantsChangeSublane(), MSVehicle::DriveProcessItem::adaptLeaveSpeed(), MSLCM_LC2013::adaptSpeedToPedestrians(), MSVehicle::adaptToLeader(), MSPModel_Striping::addCrossingVehs(), MSVehicle::addStop(), NBEdge::addStraightConnections(), MSMeanData_Net::MSLaneMeanDataValues::addTo(), MSLane::basePos(), NBNode::bezierControlPoints(), GUIViewTraffic::buildColorRainbow(), GNEViewNet::buildColorRainbow(), NBRampsComputer::buildOffRamp(), NBRampsComputer::buildOnRamp(), MSBaseVehicle::calculateArrivalParams(), GawronCalculator< R, E, V >::calculateProbabilities(), MSE2Collector::calculateTimeLossAndTimeOnDetector(), RGBColor::changedBrightness(), MSLaneChanger::changeOpposite(), MSLCM_SL2015::checkBlocking(), MSLCM_SL2015::checkBlockingVehicles(), MELoop::checkCar(), MSLane::checkFailure(), GUIApplicationWindow::checkGamingEvents(), MSVehicleTransfer::checkInsertions(), MSVehicle::checkLinkLeader(), MSE2Collector::checkPositioning(), MSLCM_SL2015::commitFollowSpeed(), Bresenham::compute(), NBNetBuilder::compute(), AStarRouter< MSEdge, SUMOVehicle, prohibited_withPermissions< MSEdge, SUMOVehicle > >::compute(), NBEdge::computeAngle(), MSDevice_SSM::computeDRAC(), NBNode::computeLanes2Lanes(), NBOwnTLDef::computeLogicAndConts(), computeRoutes(), MSLCM_SL2015::computeSpeedGain(), MSLCM_SL2015::computeSpeedLat(), NBPTStop::computExtent(), MSTLLogicControl::WAUTSwitchProcedure_Stretch::cutLogic(), MSDevice_SSM::determineTTCandDRAC(), GLHelper::drawBoxLines(), GUILane::drawDirectionIndicators(), GNELane::drawDirectionIndicators(), GNEBusStop::drawGL(), GNEContainerStop::drawGL(), GNEEdge::drawGL(), GUIChargingStation::drawGL(), GNEChargingStation::drawGL(), GUIContainerStop::drawGL(), GUIBusStop::drawGL(), GUIParkingArea::drawGL(), GUILane::drawMarkings(), GNELane::drawMarkings(), GUIBaseVehicle::drawOnPos(), MSActuatedTrafficLightLogic::duration(), MSDevice_SSM::estimateConflictTimes(), MEVehicle::estimateLeaveSpeed(), MSVehicle::estimateLeaveSpeed(), MSCFModel::estimateSpeedAfterDistance(), MSVehicle::executeMove(), NBEdge::extendGeometryAtNode(), NBEdge::firstIntersection(), MSCFModel_Kerner::followSpeed(), MSCFModel_Daniel1::followSpeed(), MSCFModel_KraussOrig1::followSpeed(), MSCFModel_PWag2009::followSpeed(), MSCFModel_SmartSK::followSpeed(), MSCFModel_Krauss::followSpeed(), MSLane::freeInsertion(), MSCFModel_Wiedemann::fullspeed(), MSActuatedTrafficLightLogic::gapControl(), MSCFModel::gapExtrapolation(), MSLane::getBruttoOccupancy(), MSInductLoop::getCurrentOccupancy(), MSEdge::getDepartLane(), MSEdge::getDepartPosBound(), MSTransportable::Stage_Driving::getEdgePos(), ROEdge::getEffort(), ROEdge::getEmissionEffort(), MSE2Collector::getEstimateQueueLength(), MSBaseVehicle::getImpatience(), MSPModel_Striping::PState::getImpatience(), MSLink::getLeaderInfo(), MSLane::getLeadersOnConsecutive(), TraCI_Lane::getLinks(), GeomHelper::getMinAngleDiff(), MSActuatedTrafficLightLogic::getMinimumMinDuration(), ROEdge::getMinimumTravelTime(), NBNodesEdgesSorter::crossing_by_junction_angle_sorter::getMinRank(), NIImporter_OpenStreetMap::getNeighboringNodes(), MSLane::getNettoOccupancy(), ROEdge::getNoiseEffort(), CState::getPosition(), GUIBaseVehicle::getSeatPosition(), MSCFModel::getSecureGap(), NBEdge::getShapeEndAngle(), NBEdge::getShapeStartAngle(), MSLeaderInfo::getSublaneBorders(), MSLeaderInfo::getSubLanes(), PublicTransportEdge< E, L, N, V >::getTravelTime(), ROEdge::getTravelTime(), MSLane::getVehicleMaxSpeed(), MSLink::getZipperSpeed(), GUIDialog_ViewSettings::GUIDialog_ViewSettings(), MSLane::handleCollisionBetween(), MSVehicle::Influencer::influenceSpeed(), MSLCM_LC2013::informFollower(), MSLCM_LC2013::informLeader(), MSLCM_SL2015::informLeader(), MSLCM_SL2015::informLeaders(), MSPModel_Striping::initWalkingAreaPaths(), MSCFModel::insertionStopSpeed(), MSCFModel::interactionGap(), NBNodeCont::joinJunctions(), MSLCM_SL2015::keepLatGap(), MSLane::lastInsertion(), SUMORouteLoaderControl::loadNext(), MESegment::loadState(), MSE2Collector::makeMoveNotification(), MSCFModel::maximumSafeStopSpeedEuler(), MSCFModel_KraussPS::maxNextSpeed(), MSCFModel::maxNextSpeed(), MIN3(), MIN4(), MSCFModel_Rail::moveHelper(), MSCFModel_Daniel1::moveHelper(), MSCFModel_KraussOrig1::moveHelper(), MSCFModel_KraussX::moveHelper(), MSCFModel_SmartSK::moveHelper(), MSCFModel::moveHelper(), MSPModel_Striping::moveInDirectionOnLane(), NIImporter_OpenStreetMap::EdgesHandler::myStartElement(), NBEdge::NBEdge(), MESegment::newArrival(), TraCIServer::nextTargetTime(), MSMeanData::MeanDataValues::notifyMove(), MSMeanData_Net::MSLaneMeanDataValues::notifyMoveInternal(), NBContHelper::straightness_sorter::operator()(), operator>>(), MSPModel_Striping::PState::otherStripe(), MSCFModel::passingTime(), MSLCM_DK2008::patchSpeed(), MSVehicle::planMoveInternal(), MSDevice_SSM::processEncounters(), TraCIServerAPI_Lane::processGet(), TraCIServerAPI_Junction::processGet(), ROLoader::processRoutes(), TraCIServerAPI_Vehicle::processSet(), MSEdge::recalcCache(), MESegment::receive(), NBEdge::reinit(), NIImporter_DlrNavteq::TimeRestrictionsHandler::report(), ROMAAssignments::resetFlows(), MSLane::safeInsertionSpeed(), RONet::saveAndRemoveRoutesUntil(), MSLCM_SL2015::setOwnState(), GUIMainWindow::setWindowSizeAndPos(), NBEdge::shiftPositionAtNode(), NBEdge::shortenGeometryAtNode(), PositionVector::smoothedZFront(), NBEdgeCont::splitAt(), NBEdge::startShapeAt(), MSCFModel_Krauss::stopSpeed(), MSCFModel_Rail::stopSpeed(), MSCFModel_Kerner::stopSpeed(), MSCFModel_Daniel1::stopSpeed(), MSCFModel_KraussOrig1::stopSpeed(), MSCFModel_PWag2009::stopSpeed(), MSCFModel_SmartSK::stopSpeed(), MSCFModel_Wiedemann::stopSpeed(), MSPModel_Striping::PState::stripe(), MSDelayBasedTrafficLightLogic::trySwitch(), AGFreeTime::typeFromHomeNight(), MSVehicle::updateBestLanes(), MSLCM_SL2015::updateExpectedSublaneSpeeds(), MSLCM_SL2015::updateGaps(), MSSwarmTrafficLightLogic::updatePheromoneLevels(), MSSwarmTrafficLightLogic::updateSensitivities(), MSVehicleControl::vehicleDeparted(), MSCFModel_KraussOrig1::vsafe(), TraCIServerAPI_Vehicle::vtdMap(), TraCIServerAPI_Vehicle::vtdMap_matchingRoutePosition(), MSPModel_Striping::PState::walk(), MSLCM_DK2008::wantsChangeToLeft(), MSLCM_DK2008::wantsChangeToRight(), MSMeanData_Emissions::MSLaneMeanDataValues::write(), MSMeanData_Harmonoise::MSLaneMeanDataValues::write(), MSMeanData_Net::MSLaneMeanDataValues::write(), NWWriter_OpenDrive::writeGeomSmooth(), MSInductLoop::writeXMLOutput(), MSE3Collector::writeXMLOutput(), and MSMeanData::writeXMLOutput().

template<typename T >
T MIN4 ( T  a,
T  b,
T  c,
T  d 
)
inline
double roundBits ( double  x,
int  fractionBits 
)

round to the given number of mantissa bits beyond the given number

Definition at line 43 of file StdDefs.cpp.

Referenced by ISNAN().

double truncate ( double  x,
int  fractionBits 
)

discrds mantissa bits beyond the given number

Definition at line 39 of file StdDefs.cpp.

Referenced by ISNAN().

Variable Documentation

bool gDebugFlag3

Definition at line 35 of file StdDefs.cpp.

Referenced by ISNAN().

bool gDebugFlag4

Definition at line 36 of file StdDefs.cpp.

Referenced by ISNAN().

const double SUMO_const_halfLaneAndOffset = (double)(3.2 / 2. + .1)

Definition at line 55 of file StdDefs.h.

Referenced by NIXMLEdgesHandler::myEndElement().

const double SUMO_const_halfLaneWidth = (double) 1.6

Definition at line 51 of file StdDefs.h.

const double SUMO_const_laneWidthAndOffset = (double) 3.3

Definition at line 54 of file StdDefs.h.

Referenced by NBEdge::getMaxLaneOffset(), and NIXMLEdgesHandler::myEndElement().

const double SUMO_const_quarterLaneWidth = (double) 0.8

Definition at line 52 of file StdDefs.h.