| 1251 | {"System clock", false}}; |
| 1252 | |
| 1253 | std::variant<DataPoint*, double*> getDataRef(int colIndex, DataPointCollection& dataPoints) |
| 1254 | { |
| 1255 | if (colIndex == 0) { |
| 1256 | return &dataPoints.time; |
| 1257 | } else if (colIndex == 1) { |
| 1258 | return &dataPoints.numCells; |
| 1259 | } else if (colIndex == 2) { |
| 1260 | return &dataPoints.numSelfReplicators; |
| 1261 | } else if (colIndex == 3) { |
| 1262 | return &dataPoints.numViruses; |
| 1263 | } else if (colIndex == 4) { |
| 1264 | return &dataPoints.numFreeCells; |
| 1265 | } else if (colIndex == 5) { |
| 1266 | return &dataPoints.numParticles; |
| 1267 | } else if (colIndex == 6) { |
| 1268 | return &dataPoints.averageGenomeCells; |
| 1269 | } else if (colIndex == 7) { |
| 1270 | return &dataPoints.totalEnergy; |
| 1271 | } else if (colIndex == 8) { |
| 1272 | return &dataPoints.numCreatedCells; |
| 1273 | } else if (colIndex == 9) { |
| 1274 | return &dataPoints.numAttacks; |
| 1275 | } else if (colIndex == 10) { |
| 1276 | return &dataPoints.numMuscleActivities; |
| 1277 | } else if (colIndex == 11) { |
| 1278 | return &dataPoints.numDefenderActivities; |
| 1279 | } else if (colIndex == 12) { |
| 1280 | return &dataPoints.numTransmitterActivities; |
| 1281 | } else if (colIndex == 13) { |
| 1282 | return &dataPoints.numInjectionActivities; |
| 1283 | } else if (colIndex == 14) { |
| 1284 | return &dataPoints.numCompletedInjections; |
| 1285 | } else if (colIndex == 15) { |
| 1286 | return &dataPoints.numNervePulses; |
| 1287 | } else if (colIndex == 16) { |
| 1288 | return &dataPoints.numNeuronActivities; |
| 1289 | } else if (colIndex == 17) { |
| 1290 | return &dataPoints.numSensorActivities; |
| 1291 | } else if (colIndex == 18) { |
| 1292 | return &dataPoints.numSensorMatches; |
| 1293 | } else if (colIndex == 19) { |
| 1294 | return &dataPoints.numReconnectorCreated; |
| 1295 | } else if (colIndex == 20) { |
| 1296 | return &dataPoints.numReconnectorRemoved; |
| 1297 | } else if (colIndex == 21) { |
| 1298 | return &dataPoints.numDetonations; |
| 1299 | } else if (colIndex == 22) { |
| 1300 | return &dataPoints.numColonies; |
| 1301 | } else if (colIndex == 23) { |
| 1302 | return &dataPoints.averageGenomeComplexity; |
| 1303 | } else if (colIndex == 24) { |
| 1304 | return &dataPoints.maxGenomeComplexityOfColonies; |
| 1305 | } else if (colIndex == 25) { |
| 1306 | return &dataPoints.varianceGenomeComplexity; |
| 1307 | } else if (colIndex == 26) { |
| 1308 | return &dataPoints.systemClock; |
| 1309 | } |
| 1310 | THROW_NOT_IMPLEMENTED(); |