/** @param index :: Row to delete.
*/
void TableWorkspace::removeRow(size_t index) {
  if (index >= rowCount()) {
    g_log.error() << "Attempt to delete a non-existing row (" << index << ")\n";
    return;
  }
  for (auto &column : m_columns)
    removeFromColumn(column.get(), index);
  --m_rowCount;
}
Example #2
0
/** @param index :: Row to delete.
*/
void TableWorkspace::removeRow(size_t index) {
  if (index >= rowCount()) {
    g_log.error() << "Attempt to delete a non-existing row (" << index << ")\n";
    return;
  }
  for (column_it ci = m_columns.begin(); ci != m_columns.end(); ci++)
    removeFromColumn(ci->get(), index);
  --m_rowCount;
}