MCPcopy Create free account
hub / github.com/chrxh/alien / process

Method process

source/Gui/LocationController.cpp:61–79  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

59}
60
61void 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}

Callers

nothing calls this directly

Calls 4

getSessionIdMethod · 0.80
sizeMethod · 0.80
clearMethod · 0.45
isOnMethod · 0.45

Tested by

no test coverage detected