X-Git-Url: https://git.llucax.com/z.facultad/75.52/treemulator.git/blobdiff_plain/dba24fb6aa7fe829dc3e96039e7f717b0ef9668e..226df952388af8a4955b26b1ef0b5e1784103bf5:/src/btree.h?ds=inline diff --git a/src/btree.h b/src/btree.h index 7d279f5..467ed6f 100644 --- a/src/btree.h +++ b/src/btree.h @@ -50,6 +50,7 @@ #include "common.h" #include "clave.h" #include "clave_fija.h" +#include "btree_data.h" /* alias para codear menos :) */ @@ -92,6 +93,8 @@ class BTree { void DelKey (const Clave &k); private: + Clave* AddKeyR (const Clave *k, uint node_num); + void WriteFileHeader (); void WriteBlock (uchar *block, uint num); @@ -100,8 +103,8 @@ class BTree { void ReadNodoHeader (uchar *node, BTreeNodeHeader *header); void WriteNodoHeader (uchar *node, BTreeNodeHeader *header); - std::list ReadKeys (uchar *node, BTreeNodeHeader &node_header); - void WriteKeys (uchar *node, BTreeNodeHeader &node_header, std::list &keys); + std::list ReadKeys (uchar *node, BTreeNodeHeader &node_header); + void WriteKeys (uchar *node, BTreeNodeHeader &node_header, std::list &keys); std::string filename; BTreeFileHeader header;