MCPcopy Create free account
hub / github.com/davisking/dlib / save_undo_state

Method save_undo_state

tools/imglab/src/metadata_editor.cpp:599–608  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

597// ----------------------------------------------------------------------------------------
598
599void metadata_editor::
600save_undo_state (
601 const box_history_entry& boxes
602)
603{
604 undo_history.push_back(boxes);
605 if (undo_history.size() > MAX_UNDO_HISTORY)
606 undo_history.erase(undo_history.begin());
607 redo_history.clear();
608}
609
610// ----------------------------------------------------------------------------------------
611

Callers

nothing calls this directly

Calls 5

eraseMethod · 0.80
push_backMethod · 0.45
sizeMethod · 0.45
beginMethod · 0.45
clearMethod · 0.45

Tested by

no test coverage detected