| 12 | } |
| 13 | |
| 14 | void Table::addRow(const row_type& row) { |
| 15 | const basic_type::size_type colSize = columns.size(); |
| 16 | if (colSize == 0) { |
| 17 | throw std::runtime_error("No column defined yet"); |
| 18 | } else if (colSize != row.size()) { |
| 19 | throw std::range_error("Row size does not match the table column size"); |
| 20 | } else { |
| 21 | rows.push_back(buildHashRow(row)); |
| 22 | } |
| 23 | } |
| 24 | |
| 25 | Table::hash_row_type Table::buildHashRow(const row_type& row) { |
| 26 | hash_row_type hashRow; |
no outgoing calls