34 #ifdef CHECK_MEMORY_LEAKS
36 #endif // CHECK_MEMORY_LEAKS
52 std::map<const MSEdge*, ValueTimeLine<SUMOReal> >::const_iterator i =
myTravelTimes.find(e);
67 std::map<const MSEdge*, ValueTimeLine<SUMOReal> >::const_iterator i =
myEfforts.find(e);
84 std::map<const MSEdge*, ValueTimeLine<SUMOReal> >::iterator i =
myTravelTimes.find(e);
89 (*i).second.add(begin, end, value);
97 std::map<const MSEdge*, ValueTimeLine<SUMOReal> >::iterator i =
myEfforts.find(e);
102 (*i).second.add(begin, end, value);
108 std::map<const MSEdge*, ValueTimeLine<SUMOReal> >::iterator i =
myTravelTimes.find(e);
117 std::map<const MSEdge*, ValueTimeLine<SUMOReal> >::iterator i =
myEfforts.find(e);
MSEdgeWeightsStorage()
Constructor.
void addEffort(const MSEdge *const e, SUMOReal begin, SUMOReal end, SUMOReal value)
Adds an effort information for an edge and a time span.
void addTravelTime(const MSEdge *const e, SUMOReal begin, SUMOReal end, SUMOReal value)
Adds a travel time information for an edge and a time span.
A road/street connecting two junctions.
void removeEffort(const MSEdge *const e)
Removes the effort information for an edge.
bool describesTime(SUMOReal time) const
Returns whether a value for the given time is known.
T getValue(SUMOReal time) const
Returns the value for the given time.
std::map< const MSEdge *, ValueTimeLine< SUMOReal > > myEfforts
A map of edge->time->effort.
void removeTravelTime(const MSEdge *const e)
Removes the travel time information for an edge.
~MSEdgeWeightsStorage()
Destructor.
bool knowsEffort(const MSEdge *const e) const
Returns the information whether any effort is known for the given edge.
bool retrieveExistingEffort(const MSEdge *const e, const SUMOReal t, SUMOReal &value) const
Returns an effort for an edge and time if stored.
bool knowsTravelTime(const MSEdge *const e) const
Returns the information whether any travel time is known for the given edge.
bool retrieveExistingTravelTime(const MSEdge *const e, const SUMOReal t, SUMOReal &value) const
Returns a travel time for an edge and time if stored.
std::map< const MSEdge *, ValueTimeLine< SUMOReal > > myTravelTimes
A map of edge->time->travel time.