X-Git-Url: https://git.llucax.com/z.facultad/75.52/treemulator.git/blobdiff_plain/78d8bc6c001cb877d8c7daf3868835815a97ce21..226df952388af8a4955b26b1ef0b5e1784103bf5:/src/btree_data.h diff --git a/src/btree_data.h b/src/btree_data.h index 5b6a9f6..b590040 100644 --- a/src/btree_data.h +++ b/src/btree_data.h @@ -10,6 +10,7 @@ /** Dato a guardar en los nodos */ class BTreeData { public: + BTreeData () {} BTreeData (uchar *node); virtual ~BTreeData (); @@ -17,12 +18,14 @@ class BTreeData { virtual uchar *ToArray (); protected: Clave *clave; - uint hijo_izquierdo; + uint hijo; }; /** Dato a guardar en las hojas */ -class BTreeLeafData:BTreeData { +class BTreeLeafData:public BTreeData { public: + BTreeLeafData (Clave *k):BTreeData () { clave = k; } + BTreeLeafData (uchar *node) { clave = new ClaveFija (node); } virtual ~BTreeLeafData (); virtual uint Size ();