X-Git-Url: https://git.llucax.com/z.facultad/75.52/treemulator.git/blobdiff_plain/a356d91d88f7f3399d80e922f70e10a8f422a3ba..a164e095defb0f86d8dcde22c6054b5e2bc7da7b:/src/btree_data.h?ds=sidebyside diff --git a/src/btree_data.h b/src/btree_data.h index d53b85f..f7106df 100644 --- a/src/btree_data.h +++ b/src/btree_data.h @@ -20,6 +20,7 @@ class BTreeData { Clave* getClave () { return clave; } uint getChild () { return hijo; } + void setChild (uint c) { hijo = c; } bool operator < (const BTreeData &data) const; virtual operator std::string () const { @@ -54,7 +55,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 ();