46 #ifdef CHECK_MEMORY_LEAKS
48 #endif // CHECK_MEMORY_LEAKS
65 myOriginalNodes(def->getNodes().begin(), def->getNodes().end()) {
96 NBConnection conn(from, fromLane, to, toLane, linkIndex);
173 if (it->getFrom() == conn.
getFrom() &&
174 it->getTo() == conn.
getTo() &&
185 const int removed = it->getTLIndex();
202 const std::vector<NBTrafficLightLogic::PhaseDefinition> phases =
myTLLogic->
getPhases();
204 for (std::vector<NBTrafficLightLogic::PhaseDefinition>::const_iterator it = phases.begin(); it != phases.end(); it++) {
205 std::string newState = it->state;
206 newState.erase(newState.begin() + removed);
207 newLogic->
addStep(it->duration, newState);
241 (*it).shiftLaneIndex(edge, offset);
250 unsigned int noLinksAll = size;
252 std::vector<NBNode::Crossing> crossings;
254 const std::vector<NBNode::Crossing>& c = (*i)->getCrossings();
256 (*i)->setCrossingTLIndices(noLinksAll);
257 copy(c.begin(), c.end(), std::back_inserter(crossings));
258 noLinksAll += (
unsigned int)c.size();
260 if (crossings.size() > 0) {
274 const std::string crossingDefaultState(crossings.size(),
'r');
277 const std::vector<NBTrafficLightLogic::PhaseDefinition> phases =
myTLLogic->
getPhases();
280 for (std::vector<NBTrafficLightLogic::PhaseDefinition>::const_iterator it = phases.begin(); it != phases.end(); it++) {