X-Git-Url: https://git.llucax.com/z.facultad/75.52/treemulator.git/blobdiff_plain/ecf0c05bcdc4ea9457feae6ef43378afc89a2fe1..88f6f1c9a8861bed8d1907001a10c4605e268a5e:/src/btree_data.h?ds=inline diff --git a/src/btree_data.h b/src/btree_data.h index 7ea7d9c..5bbfc27 100644 --- a/src/btree_data.h +++ b/src/btree_data.h @@ -19,6 +19,7 @@ class BTreeData { virtual uchar *ToArray () const; Clave* getClave () { return clave; } + uint getChild () { return hijo; } bool operator < (const BTreeData &data) const; virtual operator std::string () const { @@ -53,7 +54,7 @@ class BTreeLeafData:public BTreeData { class BTreeChildData:public BTreeData { public: - BTreeChildData (uint child):BTreeData () { hijo = child; } + BTreeChildData (uint child):BTreeData () { hijo = child; clave = NULL; } BTreeChildData (uchar *node); virtual ~BTreeChildData ();