X-Git-Url: https://git.llucax.com/z.facultad/75.52/treemulator.git/blobdiff_plain/52d9e098f15ad0ca70f11b4549f3d55f55a22a83..c8b8148848e31e0e39a01ed45c19ccc0d0702a34:/src/btree.h diff --git a/src/btree.h b/src/btree.h index 14ef604..999d798 100644 --- a/src/btree.h +++ b/src/btree.h @@ -92,7 +92,7 @@ class BTree { void AddKey (const Clave &k); void DelKey (const Clave &k); - private: + protected: Clave* AddKeyR (const Clave *k, uint node_num, uint &left_child, uint &right_child); void WriteFileHeader (); @@ -104,8 +104,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;