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

Method invertFlags

src/csvtable.cpp:998–1007  ·  view source on GitHub ↗

* Inverse all flagged rows */

Source from the content-addressed store, hash-verified

996 * Inverse all flagged rows
997 */
998void CsvTable::invertFlags() {
999 std::set<table_index_t, std::greater<table_index_t> > inverseFlags;
1000 for(table_index_t r = 0; r < getNumberRows(); ++r) {
1001 if( !isFlagged(r) ) {
1002 inverseFlags.insert(r);
1003 }
1004 }
1005 flags = inverseFlags;
1006 updateInternals();
1007}
1008
1009
1010/**

Callers 1

invertFlaggedCBMethod · 0.80

Calls 1

insertMethod · 0.45

Tested by

no test coverage detected