X-Git-Url: https://git.llucax.com/z.facultad/75.52/treemulator.git/blobdiff_plain/f4c34c38f2c62087bbf7e0d6e618660f0e48023e..b08d09c0c5ba065ea663371f3ad577a81948860d:/src/btree.h?ds=inline diff --git a/src/btree.h b/src/btree.h index cf9cc30..861b535 100644 --- a/src/btree.h +++ b/src/btree.h @@ -140,7 +140,7 @@ class BTree { */ BTreeFindResult *FindKey (const Clave &k); - protected: + //protected: /* Funciones de Alta */ Clave* AddKeyR (const Clave *k, uint node_num, uint &left_child, uint &right_child); Clave* AddKeyOtherR (const Clave *k, uint node_num, uint &left_child, uint &right_child); @@ -150,7 +150,8 @@ class BTree { void DelKeyR (BTreeData *k, uint node, uint padre); void DelKeyFromLeaf (Clave *k, uint node_num, uint padre); void DelKeyFromOther (const Clave &k, BTreeFindResult *r); - void FindB (uint node_num, uint padre, uint &left, uint &right); + void FindBrothers (uint node_num, uint padre, uint &left, uint &right); + Clave *ReplaceKeyInFather (uint node_num, uint padre, Clave *k); Clave *GetKey (uint node_num, char maxmin); /* Funciones de Búsqueda */