X-Git-Url: https://git.llucax.com/z.facultad/75.52/treemulator.git/blobdiff_plain/de3b0cb3cb22673c55c267a6cfd0428df0a084f8..379ca6a2fb8c1feb74fb2e5cd78a5a1f5a2f7ab7:/viewer/view_btree.h?ds=inline diff --git a/viewer/view_btree.h b/viewer/view_btree.h index 894bf5d..18f4df7 100644 --- a/viewer/view_btree.h +++ b/viewer/view_btree.h @@ -4,6 +4,7 @@ #include #include +#include #include "btree.h" #include "view_node.h" @@ -18,6 +19,7 @@ class ViewBTree : public Canvas::Group, public BTree { void Clear (); void HighliteKey (Clave &k); + void GoBack (); static double byte_to_pixels; static double node_width; @@ -33,6 +35,8 @@ class ViewBTree : public Canvas::Group, public BTree { /* Control para no poner 2 veces un nodo */ /* Un nodo que quiera ser puesto 2 veces es un bug :) */ std::map node_placed; + std::stack back; + uint last_visited; public: void AddNode (uint num, uint padre = 0);