42 #ifdef CHECK_MEMORY_LEAKS
44 #endif // CHECK_MEMORY_LEAKS
55 : myAttributeName(attributeName), myAmEdgeBased(edgeBased), myDestination(destination) {
67 const std::string& file)
73 const std::string& file)
75 myCurrentTimeBeg(-1), myCurrentTimeEnd(-1) {
81 std::vector<ToRetrieveDefinition*>::iterator i;
116 std::vector<ToRetrieveDefinition*>::iterator i;
120 if ((*i)->myAmEdgeBased) {
122 (*i)->myAggValue = attrs.
getFloat((*i)->myAttributeName);
124 (*i)->myHadAttribute =
true;
126 (*i)->myHadAttribute =
false;
129 (*i)->myAggValue = 0;
136 if (!(*i)->myAmEdgeBased) {
138 (*i)->myAggValue += attrs.
getFloat((*i)->myAttributeName);
140 (*i)->myHadAttribute =
true;
155 std::vector<ToRetrieveDefinition*>::iterator i;
157 if ((*i)->myHadAttribute) {
159 (*i)->myAggValue / (
SUMOReal)(*i)->myNoLanes,