X-Git-Url: https://git.llucax.com/z.facultad/75.52/treemulator.git/blobdiff_plain/226df952388af8a4955b26b1ef0b5e1784103bf5..e642d903800bc569707379b4a7f48293077d3c99:/src/btree_data.h?ds=inline diff --git a/src/btree_data.h b/src/btree_data.h index b590040..c1d4261 100644 --- a/src/btree_data.h +++ b/src/btree_data.h @@ -10,12 +10,21 @@ /** Dato a guardar en los nodos */ class BTreeData { public: - BTreeData () {} + BTreeData () { clave = NULL; } BTreeData (uchar *node); virtual ~BTreeData (); virtual uint Size (); virtual uchar *ToArray (); + + + bool operator < (const BTreeData &data) const; + virtual operator std::string () const { + if (clave) { + return (*clave); + } + return "NoKey"; + } protected: Clave *clave; uint hijo;