| 2543 | } |
| 2544 | |
| 2545 | void |
| 2546 | KnobTable::insertRow(int index, |
| 2547 | const std::vector<std::string>& row) |
| 2548 | { |
| 2549 | std::list<std::vector<std::string> > table; |
| 2550 | |
| 2551 | getTable(&table); |
| 2552 | if ( (index < 0) || ( index >= (int)table.size() ) ) { |
| 2553 | table.push_back(row); |
| 2554 | } else { |
| 2555 | std::list<std::vector<std::string> >::iterator pos = table.begin(); |
| 2556 | std::advance(pos, index); |
| 2557 | table.insert(pos, row); |
| 2558 | } |
| 2559 | |
| 2560 | setTable(table); |
| 2561 | } |
| 2562 | |
| 2563 | void |
| 2564 | KnobTable::removeRow(int index) |
no test coverage detected