MCPcopy Create free account
hub / github.com/Tablecruncher/tablecruncher / delCols

Method delCols

src/csvtable.cpp:221–231  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

219
220
221void CsvTable::delCols(table_index_t colFrom, table_index_t colTo) {
222 if( (colTo - colFrom + 1) >= storage.columns() ) // don't delete if all columns are to be deleted
223 return;
224 if( colFrom < 0 || colTo < 0 || colFrom >= storage.columns() || colTo >= storage.columns() ) // don't delete if column range is not valid
225 return;
226
227 storage.deleteColumns(colFrom, colTo);
228
229 headerRow->erase( headerRow->begin() + colFrom, headerRow->begin() + colTo + 1 );
230 updateInternals();
231}
232
233
234/*

Callers 1

MyMenuCallbackMethod · 0.45

Calls 3

columnsMethod · 0.80
deleteColumnsMethod · 0.80
beginMethod · 0.45

Tested by

no test coverage detected