From: Ricardo Markiewicz Date: Tue, 20 Sep 2005 16:37:07 +0000 (+0000) Subject: Creo TreeData para agregado recursivo X-Git-Tag: 1_0-pre1~123 X-Git-Url: https://git.llucax.com/z.facultad/75.52/treemulator.git/commitdiff_plain/bf046a4a949bf49aa1209f89f01393fb9806455a?ds=sidebyside Creo TreeData para agregado recursivo --- diff --git a/src/btree.cpp b/src/btree.cpp index 970d5c0..e28bf9e 100644 --- a/src/btree.cpp +++ b/src/btree.cpp @@ -132,6 +132,8 @@ Clave* BTree::AddKeyR (const Clave *k, uint node_num, uint &left_child, uint &ri std::cout << "==== Me voy al nodo " << (*ultima)->getChild () << std::endl; k = AddKeyR (k, (*ultima)->getChild (), left_child, right_child); } + if (k) + data = new BTreeData (k->Clone (), right_child); }