MCPcopy Create free account
hub / github.com/NatronGitHub/Natron / insertRow

Method insertRow

Engine/KnobTypes.cpp:2545–2561  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2543}
2544
2545void
2546KnobTable::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
2563void
2564KnobTable::removeRow(int index)

Callers 5

showPopupMethod · 0.80
createItemMethod · 0.80
addTableRowMethod · 0.80
addTableRowMethod · 0.80
insertTableRowMethod · 0.80

Calls 4

sizeMethod · 0.45
push_backMethod · 0.45
beginMethod · 0.45
insertMethod · 0.45

Tested by

no test coverage detected