X-Git-Url: https://git.llucax.com/z.facultad/75.52/treemulator.git/blobdiff_plain/de3b0cb3cb22673c55c267a6cfd0428df0a084f8..aa158a0284c1bc32a979d50275aa1b24438d46ef:/viewer/view_btree.h 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);