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

Function getColumnIndex

source/PersisterInterface/SerializerService.cpp:1398–1406  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1396 }
1397
1398 std::optional<int> getColumnIndex(std::string const& colName)
1399 {
1400 for (auto const& [index, colDescription] : ColumnDescriptions | boost::adaptors::indexed(0)) {
1401 if (colDescription.name == colName) {
1402 return toInt(index);
1403 }
1404 }
1405 return std::nullopt;
1406 }
1407}
1408
1409void SerializerService::serializeStatistics(StatisticsHistoryData const& statistics, std::ostream& stream)

Callers 1

deserializeStatisticsMethod · 0.85

Calls 1

toIntFunction · 0.85

Tested by

no test coverage detected