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

Method findLocationArrayIndex

source/Gui/LocationHelper.cpp:20–33  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

18}
19
20int LocationHelper::findLocationArrayIndex(SimulationParameters const& parameters, int locationIndex)
21{
22 for (int i = 0; i < parameters.numZones; ++i) {
23 if (parameters.zone[i].locationIndex == locationIndex) {
24 return i;
25 }
26 }
27 for (int i = 0; i < parameters.numRadiationSources; ++i) {
28 if (parameters.radiationSource[i].locationIndex == locationIndex) {
29 return i;
30 }
31 }
32 THROW_NOT_IMPLEMENTED();
33}
34
35std::map<int, int> LocationHelper::onDecreaseLocationIndex(SimulationParameters& parameters, int locationIndex)
36{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected