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

Function toVector

source/Gui/SimulationParametersZoneWidgets.cpp:17–28  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

15
16 template <int numRows, int numCols, typename T>
17 std::vector<std::vector<T>> toVector(T const v[numRows][numCols])
18 {
19 std::vector<std::vector<T>> result;
20 for (int row = 0; row < numRows; ++row) {
21 std::vector<T> rowVector;
22 for (int col = 0; col < numCols; ++col) {
23 rowVector.emplace_back(v[row][col]);
24 }
25 result.emplace_back(rowVector);
26 }
27 return result;
28 }
29}
30
31void _SimulationParametersZoneWidgets::init(SimulationFacade const& simulationFacade, int locationIndex)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected