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

Method deleteRows

src/csvdatastorage.cpp:296–300  ·  view source on GitHub ↗

deleteRows(long rowFrom, long rowTo) Delete rows from rowFrom to rowTo inclusively. */

Source from the content-addressed store, hash-verified

294 Delete rows from rowFrom to rowTo inclusively.
295 */
296void CsvDataStorage::deleteRows(table_index_t rowFrom, table_index_t rowTo) {
297 if( rowFrom >= 0 && rowFrom < rows() && rowTo >= rowFrom && rowTo < rows() ) {
298 tableData.erase( tableData.begin() + rowFrom, tableData.begin() + rowTo + 1 );
299 }
300}
301
302
303

Callers 3

delRowsMethod · 0.80
switchHeaderMethod · 0.80
parseCsvStreamMethod · 0.80

Calls 1

beginMethod · 0.45

Tested by

no test coverage detected