| 59 | } |
| 60 | |
| 61 | void LocationController::process() |
| 62 | { |
| 63 | if (!_sessionId.has_value() || _sessionId.value() != _simulationFacade->getSessionId()) { |
| 64 | _locationWindows.clear(); |
| 65 | } |
| 66 | |
| 67 | std::vector<LocationWindow> newlocationWindows; |
| 68 | newlocationWindows.reserve(_locationWindows.size()); |
| 69 | |
| 70 | for (auto& locationWindow: _locationWindows) { |
| 71 | locationWindow.process(); |
| 72 | if (locationWindow.isOn()) { |
| 73 | newlocationWindows.emplace_back(std::move(locationWindow)); |
| 74 | } |
| 75 | } |
| 76 | _locationWindows.swap(newlocationWindows); |
| 77 | |
| 78 | _sessionId = _simulationFacade->getSessionId(); |
| 79 | } |
nothing calls this directly
no test coverage detected