MCPcopy Create free account
hub / github.com/KLayout/klayout / commit

Method commit

src/db/db/dbManager.cc:194–212  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

192}
193
194void
195Manager::commit ()
196{
197 if (m_enabled) {
198
199 tl_assert (m_opened);
200 tl_assert (! m_replay);
201 m_opened = false;
202
203 // delete transactions that are empty
204 if (m_current->first.begin () != m_current->first.end ()) {
205 ++m_current;
206 } else {
207 erase_transactions (m_current, m_transactions.end ());
208 m_current = m_transactions.end ();
209 }
210
211 }
212}
213
214void
215Manager::undo ()

Callers 15

test_6_EditableLayoutMethod · 0.95
test_1aMethod · 0.45
test_6_EditableLayoutMethod · 0.45
test_17Method · 0.45
test_6Method · 0.45
test_23Method · 0.45
test_1aMethod · 0.45
test_flatten.rbFile · 0.45
_call_f_commit_0Function · 0.45
_call_f_commit_0Function · 0.45
_call_f_commit_0Function · 0.45
_call_f_commit_0Function · 0.45

Calls 2

beginMethod · 0.45
endMethod · 0.45

Tested by 7

test_6_EditableLayoutMethod · 0.76
test_1aMethod · 0.36
test_6_EditableLayoutMethod · 0.36
test_17Method · 0.36
test_6Method · 0.36
test_23Method · 0.36
test_1aMethod · 0.36