X-Git-Url: https://git.llucax.com/z.facultad/75.52/treemulator.git/blobdiff_plain/0fd0b8da8e1e9c889282ad4cb41f4b4cf2e63838..379ca6a2fb8c1feb74fb2e5cd78a5a1f5a2f7ab7:/viewer/view_btree.h diff --git a/viewer/view_btree.h b/viewer/view_btree.h index bb955bd..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" @@ -14,10 +15,11 @@ class ViewNode; class ViewBTree : public Canvas::Group, public BTree { public: - ViewBTree (Canvas::Group *parent, std::string filename, uint block_size, int type); + ViewBTree (Canvas::Group *parent, std::string filename, uint block_size, int tree_type, int type); 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);