Exemplo n.º 1
0
/** @param index :: Points where to insert the new row.
    @return Position of the inserted row.
*/
size_t TableWorkspace::insertRow(size_t index) {
  if (index >= rowCount())
    index = rowCount();
  for (auto &column : m_columns)
    insertInColumn(column.get(), index);
  ++m_rowCount;
  return index;
}
Exemplo n.º 2
0
/** @param index :: Points where to insert the new row.
    @return Position of the inserted row.
*/
size_t TableWorkspace::insertRow(size_t index) {
  if (index >= rowCount())
    index = rowCount();
  for (column_it ci = m_columns.begin(); ci != m_columns.end(); ci++)
    insertInColumn(ci->get(), index);
  ++m_rowCount;
  return index;
}