-----------------------------------------------------------------------------
| 53 | } |
| 54 | //----------------------------------------------------------------------------- |
| 55 | std::variant<std::string, int, double> Table::get(const std::string& row, |
| 56 | const std::string& col) const |
| 57 | { |
| 58 | std::pair<std::string, std::string> key(row, col); |
| 59 | auto it = _values.find(key); |
| 60 | if (it == _values.end()) |
| 61 | { |
| 62 | throw std::runtime_error("Missing table value for entry (\"" + row |
| 63 | + "\", \"" + col + "\")"); |
| 64 | } |
| 65 | |
| 66 | return it->second; |
| 67 | } |
| 68 | //----------------------------------------------------------------------------- |
| 69 | Table Table::reduce(MPI_Comm comm, Table::Reduction reduction) const |
| 70 | { |
no test coverage detected